Class JUnitConformance

java.lang.Object
codes.grow.packages.skywalking.testing.JUnitConformance

public final class JUnitConformance extends Object
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 Details

    • dynamicTests

      public static Stream<org.junit.jupiter.api.DynamicTest> dynamicTests(ConformanceRunner runner)
      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