bld Extension for Running Tests with TestNG https://github.com/rife2/bld-testng
Find a file
2023-08-14 19:48:07 -07:00
.idea Added licence, copyright and README 2023-08-14 19:48:07 -07:00
.vscode Initial commit 2023-08-14 18:20:05 -07:00
config Initial commit 2023-08-14 18:20:05 -07:00
examples Added licence, copyright and README 2023-08-14 19:48:07 -07:00
lib/bld Initial commit 2023-08-14 18:20:05 -07:00
src Added licence, copyright and README 2023-08-14 19:48:07 -07:00
.gitignore Initial commit 2023-08-14 18:20:05 -07:00
bld Initial commit 2023-08-14 18:20:05 -07:00
bld.bat Initial commit 2023-08-14 18:20:05 -07:00
LICENSE.txt Added licence, copyright and README 2023-08-14 19:48:07 -07:00
README.md Added licence, copyright and README 2023-08-14 19:48:07 -07:00

Bld Extension to Run Test with TestNG

License Java Release Snapshot GitHub CI

To run the tests with TestNG:

@BuildCommand(summary = "Run tests with TestNG")
public void testng() throws Exception {
    new TestNgOperation()
    .fromProject(this)
    .packages("com.example")
    .execute();
}
./bld compile testng

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, 8, 0)));