public class FlakinessDetectorTestRunnerWithParameters
extends org.junit.runners.parameterized.BlockJUnit4ClassRunnerWithParameters
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 @Parameterized test class with
@UseParametersRunnerFactory(FlakinessDetectorTestRunnerWithParametersFactory.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
| Modifier and Type | Class and Description |
|---|---|
static class |
FlakinessDetectorTestRunnerWithParameters.FlakinessDetectorTestRunnerWithParametersFactory |
| Constructor and Description |
|---|
FlakinessDetectorTestRunnerWithParameters(org.junit.runners.parameterized.TestWithParameters test) |
| Modifier and Type | Method and Description |
|---|---|
protected List<org.junit.runners.model.FrameworkMethod> |
computeTestMethods() |
classBlock, createTest, getName, getRunnerAnnotations, testName, validateConstructor, validateFieldscollectInitializationErrors, describeChild, getChildren, getTestRules, isIgnored, methodBlock, methodInvoker, possiblyExpectingExceptions, rules, runChild, validateInstanceMethods, validateNoNonStaticInnerClass, validateOnlyOneConstructor, validateTestMethods, validateZeroArgConstructor, withAfters, withBefores, withPotentialTimeoutpublic FlakinessDetectorTestRunnerWithParameters(org.junit.runners.parameterized.TestWithParameters test)
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–2022 MuleSoft, Inc.. All rights reserved.