Skip to content

Latest commit

 

History

History
38 lines (28 loc) · 1.89 KB

README.md

File metadata and controls

38 lines (28 loc) · 1.89 KB

bld Extension to Run Tests with TestNG

License Java bld Release Snapshot GitHub CI

To install, please refer to the extensions documentation.

To run the tests with TestNG, add the following to your build file:

@Override
public TestOperation<?, ?> testOperation() {
    return new TestNgOperation()
            .fromProject(this)
            .packages("com.example");
}
./bld compile test

Please check the TestNgOperation documentation for all available configuration options.

TestNG Dependency

Don't forget to add a TestNG test dependency to your build file, as it is not provided by the extension. For example:

repositories = List.of(MAVEN_CENTRAL);
scope(test).include(dependency("org.testng", "testng", version(7, 10, 2)));