Testing Helpers for bld Extensions
This project provides a collection of testing helpers used by various bld extensions.
To use, include the following in your bld
build file:
repositories = List.of(RIFE2_RELEASES, RIFE2_SNAPSHOTS);
scope(compile).include(
dependency("com.uwyn.rife2", "bld-extensions-testing-helpers", version(0, 9,0))
);
Please check the documentation for more information.
The following annotations are provided:
Annotation | Description |
---|---|
CaptureOutput |
Capture stdout and stderr output |
DisabledOnCi |
Disables a test when running on a CI/CD environment |
RandomRange |
Generates a random integer within a specified range |
RandomString |
Generates a random string |
The following extensions are provided:
Extension | Description |
---|---|
LoggingExtension |
Configures console logging for test suites |
The following helper classes are provided:
Helper | Description |
---|---|
TestLogHandler |
A log handler that captures log messages |
The following static methods are provided:
Utility | Description |
---|---|
generateRandomInt(int, int) |
Generates a random integer |
generateRandomString() |
Generates a random string |