Skip to content

Latest commit

 

History

129 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

License Java bld Release Snapshot GitHub CI

Testing Helpers for bld

To use the testing helpers, include the following in your bld build file:

repositories = List.of(RIFE2_RELEASES, RIFE2_SNAPSHOTS);

scope(test).include(
    dependency("com.uwyn.rife2", "bld-testing-helpers", version(1, 1, 0, "SNAPSHOT"))
);

Please check the documentation for more information.

Annotations

The following annotations are provided:

Annotation Description
VisibleForTesting Indicates that a class member's visibility has been relaxed testing

JUnit Annotations

The following JUnit annotations are provided:

Annotation Description
BlankSource Provides blank string values for parameterized tests
CaptureOutput Capture stdout and stderr output
CouldFail Allows a test to fail
DisabledOnCi Disables a test when running in a CI/CD environment
EnabledOnCi Enables a test when running in a CI/CD environment
RandomRange Generates a random integer within a specified range
RandomString Generates a random string
RetryTest Retry test on failure

JUnit Extensions

The following extensions are provided:

Extension Description
LoggingExtension Configures console logging for test suites

Helpers

The following helper classes are provided:

Helper Description
TestLogHandler A log handler that captures log messages

Utilities

The following static methods are provided:

Utility Description
generateRandomInt(int, int) Generates a random integer
generateRandomString() Generates a random string

About

Collection of Testing Helpers for bld

Topics

Resources

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages