Add repeated module: @RepeatedTest from JUnit 5 to JUnit 6 (6.1.3, JDK 25)
This commit is contained in:
@@ -0,0 +1,47 @@
|
||||
# Scratch run: @RepeatedTest(failureThreshold = 2) -- after the 2nd failure (repetition 8), repetitions 9 and 10 are SKIPPED, not invoked (FailureThresholdStopsRemainingDemoTest, removed before commit)
|
||||
|
||||
|
||||
Thanks for using JUnit! Support its development at https://junit.org/sponsoring
|
||||
|
||||
╷
|
||||
├─ JUnit Platform Suite ✔
|
||||
├─ JUnit Jupiter ✔
|
||||
│ └─ FailureThresholdStopsRemainingDemoTest ✔
|
||||
│ └─ intermittentRaceCondition(RepetitionInfo) ✔
|
||||
│ ├─ repetition 1 of 10 ✔
|
||||
│ ├─ repetition 2 of 10 ✔
|
||||
│ ├─ repetition 3 of 10 ✔
|
||||
│ ├─ repetition 4 of 10 ✘ simulated race condition reproduced on repetition 4
|
||||
│ ├─ repetition 5 of 10 ✔
|
||||
│ ├─ repetition 6 of 10 ✔
|
||||
│ ├─ repetition 7 of 10 ✔
|
||||
│ ├─ repetition 8 of 10 ✘ simulated race condition reproduced on repetition 8
|
||||
│ ├─ repetition 9 of 10 ↷ Failure threshold [2] exceeded
|
||||
│ └─ repetition 10 of 10 ↷ Failure threshold [2] exceeded
|
||||
└─ JUnit Vintage ✔
|
||||
|
||||
Failures (2):
|
||||
JUnit Jupiter:FailureThresholdStopsRemainingDemoTest:intermittentRaceCondition(RepetitionInfo):repetition 4 of 10
|
||||
MethodSource [className = 'com.ankurm.tutorials.junit.repeated.FailureThresholdStopsRemainingDemoTest', methodName = 'intermittentRaceCondition', methodParameterTypes = 'org.junit.jupiter.api.RepetitionInfo']
|
||||
=> org.opentest4j.AssertionFailedError: simulated race condition reproduced on repetition 4
|
||||
org.junit.jupiter.api.Assertions.fail(Assertions.java:142)
|
||||
com.ankurm.tutorials.junit.repeated.FailureThresholdStopsRemainingDemoTest.intermittentRaceCondition(FailureThresholdStopsRemainingDemoTest.java:14)
|
||||
JUnit Jupiter:FailureThresholdStopsRemainingDemoTest:intermittentRaceCondition(RepetitionInfo):repetition 8 of 10
|
||||
MethodSource [className = 'com.ankurm.tutorials.junit.repeated.FailureThresholdStopsRemainingDemoTest', methodName = 'intermittentRaceCondition', methodParameterTypes = 'org.junit.jupiter.api.RepetitionInfo']
|
||||
=> org.opentest4j.AssertionFailedError: simulated race condition reproduced on repetition 8
|
||||
org.junit.jupiter.api.Assertions.fail(Assertions.java:142)
|
||||
com.ankurm.tutorials.junit.repeated.FailureThresholdStopsRemainingDemoTest.intermittentRaceCondition(FailureThresholdStopsRemainingDemoTest.java:14)
|
||||
|
||||
Test run finished after 292 ms
|
||||
[ 5 containers found ]
|
||||
[ 0 containers skipped ]
|
||||
[ 5 containers started ]
|
||||
[ 0 containers aborted ]
|
||||
[ 5 containers successful ]
|
||||
[ 0 containers failed ]
|
||||
[ 10 tests found ]
|
||||
[ 2 tests skipped ]
|
||||
[ 8 tests started ]
|
||||
[ 0 tests aborted ]
|
||||
[ 6 tests successful ]
|
||||
[ 2 tests failed ]
|
||||
Reference in New Issue
Block a user