public final class TestRuleIgnoreAfterMaxFailures extends Object implements org.junit.rules.TestRule
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).
Constructor and Description |
---|
TestRuleIgnoreAfterMaxFailures(int maxFailures) |
Modifier and Type | Method and Description |
---|---|
org.junit.runners.model.Statement |
apply(org.junit.runners.model.Statement s,
Description d) |
public TestRuleIgnoreAfterMaxFailures(int maxFailures)
maxFailures
- The number of failures after which all tests are ignored. Must be
greater or equal 1.public org.junit.runners.model.Statement apply(org.junit.runners.model.Statement s, Description d)
apply
in interface org.junit.rules.TestRule
Copyright © 2000-2016 Apache Software Foundation. All Rights Reserved.