Class JUnitConformance
java.lang.Object
codes.grow.packages.betterstack.testing.JUnitConformance
JUnit 5 adapter: one dynamic test per scenario. Requires
junit-jupiter-api on the test
classpath (it is not a runtime dependency of the SDK).
@TestFactory
Stream<DynamicTest> conformance() {
return JUnitConformance.dynamicTests(ConformanceRunner.builder().target("core", s -> client).build());
}
-
Method Summary
Modifier and TypeMethodDescriptionstatic Stream<org.junit.jupiter.api.DynamicTest> dynamicTests(ConformanceRunner runner) Creates one dynamic test per selected scenario.
-
Method Details
-
dynamicTests
Creates one dynamic test per selected scenario. Skipped scenarios are reported as aborted (assumption failure), failed ones as assertion errors.- Parameters:
runner- configured runner- Returns:
- the dynamic tests
-