Package groovy.junit6.plugin
package groovy.junit6.plugin
Classes to support running JUnit 6 (Jupiter) tests as scripts.
- Since:
- 6.0.0
-
ClassDescriptionInverts the pass/fail outcome of the annotated test method (or every test method on the annotated class): a test that throws is reported as passing, and a test that completes normally is reported as failing.Delegate for closure predicates supplied to
ExpectedToFail, exposing the thrown exception under three convenient names:ex(theThrowableitself),message(its message), andcause(its cause, possiblynull).JUnit 5InvocationInterceptorbacking theExpectedToFailannotation.Runs the annotated test method (or every test method on the annotated class) in a freshly forked JVM, optionally configured with extra system properties and JVM arguments.JUnit 5InvocationInterceptorbacking theForkedJvmannotation.Child-JVM entry point forForkedJvm-annotated tests.Integration code for running JUnit 6 (Jupiter) tests in Groovy.