Package rife.bld.extension.testing
Annotation Interface DisabledOnCi
@Target({TYPE,METHOD})
@Retention(RUNTIME)
@ExtendWith(DisabledOnCiCondition.class)
public @interface DisabledOnCi
JUnit annotation for disabling tests on CI/CD environments.
Example usage:
public class MyTest { @Test @DisabledOnCi public void testMethod() { // This test will be disabled on CI/CD environments } }
The decision is made by checking whether the CI
environment variable is defined. It can be set manually
but is set automatically by most CI/CD environments, such as
GitHub Actions,
GitLab, etc.
- Since:
- 1.0
- Author:
- Erik C. Thauvin