Annotation Type TestActivation


  • @Retention(RUNTIME)
    @Target({METHOD,TYPE})
    @Inherited
    @Documented
    @RuleAnnotation(value=RuleImpl.class,
                    priority=-10)
    public @interface TestActivation
    Declare there is a property that needs to be provided to run the test.

    This is often used when credentials than can not be in git are needed to run the test. Another use-case is test interacting with pre-deployed service.

    Failing the activation criteria will skip the test but unlike JUnit assumptions it will happen before Jenkins boots up.

    Author:
    ogondza
    • Required Element Summary

      Required Elements 
      Modifier and Type Required Element Description
      String[] value  
    • Element Detail

      • value

        String[] value
        Returns:
        Property names that needs to be present to execute the test/test case.