bld Extension for Running Tests with TestNG https://github.com/rife2/bld-testng
Find a file
2025-03-25 21:48:14 -07:00
.github/workflows Add OS matrix for Ubuntu, Windows and macOS 2025-03-25 21:48:14 -07:00
.idea Bump bld to version 2.2.1 2025-02-24 23:21:06 -08:00
.vscode Bump bld to version 2.2.1 2025-02-24 23:21:06 -08:00
config Updated dependencies 2024-10-28 10:15:48 -07:00
examples Add OS matrix for Ubuntu, Windows and macOS 2025-03-25 21:48:14 -07:00
lib/bld Bump PMD extension to version 1.2.1 2025-03-18 13:00:43 -07:00
scripts Execute cliargs script before running tests 2024-05-28 14:22:50 -07:00
src Add OS matrix for Ubuntu, Windows and macOS 2025-03-25 21:48:14 -07:00
.gitignore Added script to list parameters 2024-05-27 16:22:55 -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 Add generic installation instructions 2025-03-18 13:02:25 -07:00

bld Extension to Run Tests with TestNG

License Java bld Release Snapshot GitHub CI

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