Package org.junitpioneer.jupiter
Annotation Type ReadsEnvironmentVariable
@Retention(RUNTIME)
@Target({ANNOTATION_TYPE,CONSTRUCTOR,METHOD,PACKAGE,TYPE})
public @interface ReadsEnvironmentVariable
Marks tests that read environment variables but don't use the environment variable extension themselves.
During
parallel test execution,
all tests annotated with ClearEnvironmentVariable
, SetEnvironmentVariable
, ReadsEnvironmentVariable
, and WritesEnvironmentVariable
are scheduled in a way that guarantees correctness under mutation of shared global state.
For more details and examples, see
the documentation on @ClearEnvironmentVariable
and @SetEnvironmentVariable
.
- Since:
- 0.9