bld Extension for Running Tests with TestNG https://github.com/rife2/bld-testng
Find a file
2024-04-09 13:35:35 -07:00
.github/workflows Bumped workflows actions to latest versions 2024-04-03 20:32:19 -07:00
.idea Bumped to bld 1.9.0 2024-03-21 00:26:00 -07:00
.vscode Bumped to bld 1.9.0 2024-03-21 00:26:00 -07:00
config Bumped PMD extension to version 0.9.8 2024-04-03 20:33:44 -07:00
examples Bumped TestNG to version 7.10.1 2024-04-09 13:35:35 -07:00
lib/bld Bumped PMD extension to version 0.9.8 2024-04-03 20:33:44 -07:00
src Bumped TestNG to version 7.10.1 2024-04-09 13:35:35 -07:00
.gitignore Added report location to log 2023-08-14 20:16:09 -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
checkcliargs.sh Added visual diff parameter 2024-04-07 14:23:07 -07:00
LICENSE.txt Added licence, copyright and README 2023-08-14 19:48:07 -07:00
README.md Bumped TestNG to version 7.10.1 2024-04-09 13:35:35 -07:00

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, 1)));