bld Extension for Running Tests with TestNG
https://github.com/rife2/bld-testng
.github/workflows | ||
.idea | ||
.vscode | ||
config | ||
examples | ||
lib/bld | ||
scripts | ||
src | ||
.gitignore | ||
bld | ||
bld.bat | ||
LICENSE.txt | ||
README.md |
bld Extension to Run Tests with TestNG
To install the latest version, add the following to the lib/bld/bld-wrapper.properties
file:
bld.extension-testng=com.uwyn.rife2:bld-testng
For more information, please refer to the extensions documentation.
Test with TestNG
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, 11, 0)));