Class TestRuleIgnoreAfterMaxFailures

  • All Implemented Interfaces:
    org.junit.rules.TestRule

    public final class TestRuleIgnoreAfterMaxFailures
    extends Object
    implements org.junit.rules.TestRule
    This rule keeps a count of failed tests (suites) and will result in an AssumptionViolatedException after a given number of failures for all tests following this condition.

    Aborting quickly on failed tests can be useful when used in combination with test repeats (via the Repeat annotation or system property).