public class FlakinessDetectorTestRunner
extends org.junit.runners.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.class)
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
For Parameterized tests, you must use FlakinessDetectorTestRunnerWithParameters instead.
| 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, isIgnored, methodBlock, methodInvoker, possiblyExpectingExceptions, rules, runChild, testName, validateConstructor, validateFields, validateInstanceMethods, validateNoNonStaticInnerClass, validateOnlyOneConstructor, validateTestMethods, validateZeroArgConstructor, withAfters, withBefores, withPotentialTimeoutpublic FlakinessDetectorTestRunner(Class<?> type) throws org.junit.runners.model.InitializationError
org.junit.runners.model.InitializationErrorprotected List<org.junit.runners.model.FrameworkMethod> computeTestMethods()
computeTestMethods in class org.junit.runners.BlockJUnit4ClassRunnerCopyright © 2003–2018 MuleSoft, Inc.. All rights reserved.