Skip to content

rife2/bld-extensions-testing-helpers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

License Java bld Release Snapshot GitHub CI

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.

JUnit Annotations

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

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 Extensions

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Languages