Skip to content

codeborne/xls-test

Folders and files

NameName
Last commit message
Last commit date
Mar 10, 2025
Mar 7, 2025
Sep 5, 2022
Nov 12, 2021
Jun 27, 2015
Sep 26, 2024
Nov 16, 2015
Sep 26, 2024
Sep 26, 2024
Feb 12, 2016
Mar 7, 2025
Aug 15, 2024
Nov 1, 2021

Repository files navigation

Maven Central Coverage Status

XLS Test

Excel testing library

Be sure that your code generates correct Excel!

How to use

import com.codeborne.xlstest.XLS;
import static com.codeborne.xlstest.XLS.*;
import static org.hamcrest.MatcherAssert.assertThat;

public class ExcelContainsTextTest {
  @Test
  public void canAssertThatXlsContainsText() {
    XLS spreadsheet = new XLS(getClass().getClassLoader().getResource("statement.xls"));
    assertThat(spreadsheet, containsText("Statement"));
  }
}

How to start

If you use Maven, add the following dependency to pom.xml:

  <dependency>
    <groupId>com.codeborne</groupId>
    <artifactId>xls-test</artifactId>
    <version>1.7.2</version>
  </dependency>

If you use Gradle, add the following dependency to build.gradle:

  testCompile 'com.codeborne:xls-test:1.7.2'

How to contribute

You are welcome to suggest your features and fixes!

Just fork the xls-test and create pull request. Any contribution is important!

Become part of open-source community!

Thanks

Many thanks to these incredible tools that help us to create open-source software:

Intellij IDEA

YourKit Java profiler

License

xls-test is open-source project and distributed under MIT license