# Package groovy.junit6.plugin

## Package groovy.junit6.plugin Description

Classes to support running JUnit 6 (Jupiter) tests as scripts.

since:
  6.0.0

- Class Summary
  Class | Description
  --- | ---
  ConditionEvaluationContext | Delegate object for GroovyEnabledIf and GroovyDisabledIf closures, providing convenient access to environment, system properties, and JUnit context.
  ExpectedToFailContext | Delegate for closure predicates supplied to ExpectedToFail, exposing the thrown exception under three convenient names: `ex` (the Throwable itself), `message` (its message), and `cause` (its cause, possibly `null`).
  ExpectedToFailExtension | JUnit 5 InvocationInterceptor backing the ExpectedToFail annotation.
  ForkedJvmExtension | JUnit 5 InvocationInterceptor backing the ForkedJvm annotation.
  ForkedJvmTestRunner | Child-JVM entry point for ForkedJvm-annotated tests.
  GroovyConditionExtension | JUnit ExecutionCondition that evaluates Groovy closures from GroovyEnabledIf and GroovyDisabledIf annotations.
  GroovyJUnitRunnerHelper | Helper for launching a single JUnit Platform test class from Groovy's JUnit 6 runner.
  JUnit6Runner | Integration code for running JUnit 6 (Jupiter) tests in Groovy.

- Annotation Type Summary
  Annotation Type | Description
  --- | ---
  ExpectedToFail | Inverts 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.
  ForkedJvm | 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.
  GroovyDisabledIf | Disables the annotated test class or method if the Groovy closure evaluates to `true`.
  GroovyEnabledIf | Enables the annotated test class or method if the Groovy closure evaluates to `true`.