Uploaded image for project: 'Geode'
  1. Geode
  2. GEODE-167

Leverage the @ConditionalIgnore annotation and corresponding JUnit Rule to setup conditional test exclusions in the test suite based on timestamp or complex condition implemented with IgnoreCondition.

    XMLWordPrintableJSON

Details

    Description

      Make use of the @ConditionalIgnore annotation and corresponding JUnit ConditionalIgnoreRule to ignore tests on a case-by-case basis using a specific set of criteria (a.k.a. IgnoreCondition).

      This could be used for instance to ignore offending tests causing failure or hangs in the test suite downstream or to conditional ignore a test based on specific environmental/context requirements.

      See attached source code for reference.

      Attachments

        1. ConditionalIgnoreRule.java
          4 kB
          John Blum
        2. ConditionalIgnoreRule.java
          4 kB
          John Blum
        3. DefaultIgnoreCondition.java
          1.0 kB
          John Blum
        4. IgnoreCondition.java
          0.3 kB
          John Blum
        5. IgnoreConditionEvaluationException.java
          0.6 kB
          John Blum

        Activity

          People

            Unassigned Unassigned
            jblum John Blum
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:

              Time Tracking

                Estimated:
                Original Estimate - 8h
                8h
                Remaining:
                Remaining Estimate - 8h
                8h
                Logged:
                Time Spent - Not Specified
                Not Specified