Class EnabledOnCiCondition

java.lang.Object
rife.bld.extension.testing.EnabledOnCiCondition
All Implemented Interfaces:
ExecutionCondition, Extension

public class EnabledOnCiCondition extends Object implements ExecutionCondition
Implementation of JUnit's ExecutionCondition to conditionally enable tests when running in a CI/CD environment.

This condition determines whether a test or test container should be enabled or disabled based on the presence of the CI environment variable. If the variable is set, the condition enables the test; otherwise, it disables the test.

The presence of the CI environment variable is typically an indicator that the code is running in a CI/CD pipeline, as this variable is automatically defined in most CI environments such as GitHub Actions, GitLab CI, and others.

Since:
1.0
Author:
Erik C. Thauvin
  • Constructor Details

    • EnabledOnCiCondition

      public EnabledOnCiCondition()
  • Method Details