public class FlakinessDetectorTestRunner extends BlockJUnit4ClassRunner
FlakyTest
and generate the
required test methods for them. Annotation on test classes take precedence on annotated
test methods.
NOTE: This is a tool intended to be used by developers but not to commit any test using this test runner. That would be only valid when a flaky test fails on the continuous integration server but not locally.
To use this tool annotate the test class with
@RunWith(FlakinessDetectorTestRunner)And then annotate the flaky test class or flaky test method with
@FlakyTest(times= n) // where n is the number of times you want the test executed
Constructor and Description |
---|
FlakinessDetectorTestRunner(Class<?> type) |
Modifier and Type | Method and Description |
---|---|
protected List<org.junit.runners.model.FrameworkMethod> |
computeTestMethods() |
collectInitializationErrors, createTest, describeChild, getChildren, getTestRules, methodBlock, methodInvoker, possiblyExpectingExceptions, rules, runChild, testName, validateConstructor, validateFields, validateInstanceMethods, validateNoNonStaticInnerClass, validateOnlyOneConstructor, validateTestMethods, validateZeroArgConstructor, withAfters, withBefores, withPotentialTimeout
childrenInvoker, classBlock, classRules, filter, getDescription, getName, getRunnerAnnotations, getTestClass, run, runLeaf, setScheduler, sort, validatePublicVoidNoArgMethods, withAfterClasses, withBeforeClasses
public FlakinessDetectorTestRunner(Class<?> type) throws org.junit.runners.model.InitializationError
protected List<org.junit.runners.model.FrameworkMethod> computeTestMethods()
computeTestMethods
in class BlockJUnit4ClassRunner
Copyright © 2003–2015 MuleSoft, Inc.. All rights reserved.