You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@geode.apache.org by "Philipp Ottlinger (JIRA)" <ji...@apache.org> on 2019/04/07 21:36:00 UTC

[jira] [Commented] (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.

    [ https://issues.apache.org/jira/browse/GEODE-167?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16811967#comment-16811967 ] 

Philipp Ottlinger commented on GEODE-167:
-----------------------------------------

[~upthewaterspout] We are using a variant of this code to not run contract tests during periods where the corresponding machines are asleep. I'm not sure how a simple Assume will help with that ;) just to give some more context.

> 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.
> --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: GEODE-167
>                 URL: https://issues.apache.org/jira/browse/GEODE-167
>             Project: Geode
>          Issue Type: Improvement
>          Components: general
>         Environment: Apache Geode test infrastructure
>            Reporter: John Blum
>            Assignee: John Blum
>            Priority: Minor
>              Labels: ApacheGeode, ConditionalIgnore, Test, UnitTest
>         Attachments: ConditionalIgnoreRule.java, ConditionalIgnoreRule.java, DefaultIgnoreCondition.java, IgnoreCondition.java, IgnoreConditionEvaluationException.java
>
>   Original Estimate: 8h
>  Remaining Estimate: 8h
>
> 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.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)