Files
JUnit_Tutorials/repeated/docs/output/06-flaky-detected.txt
T

48 lines
2.5 KiB
Plaintext

# Scratch run: @RepeatedTest with no failureThreshold -- all 10 repetitions still run even though 2 fail (FlakyDetectionDemoTest, removed before commit)
Thanks for using JUnit! Support its development at https://junit.org/sponsoring
╷
├─ JUnit Platform Suite ✔
├─ JUnit Jupiter ✔
│ └─ FlakyDetectionDemoTest ✔
│ └─ 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 ✔
│ └─ repetition 10 of 10 ✔
└─ JUnit Vintage ✔
Failures (2):
JUnit Jupiter:FlakyDetectionDemoTest:intermittentRaceCondition(RepetitionInfo):repetition 4 of 10
MethodSource [className = 'com.ankurm.tutorials.junit.repeated.FlakyDetectionDemoTest', 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.FlakyDetectionDemoTest.intermittentRaceCondition(FlakyDetectionDemoTest.java:14)
JUnit Jupiter:FlakyDetectionDemoTest:intermittentRaceCondition(RepetitionInfo):repetition 8 of 10
MethodSource [className = 'com.ankurm.tutorials.junit.repeated.FlakyDetectionDemoTest', 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.FlakyDetectionDemoTest.intermittentRaceCondition(FlakyDetectionDemoTest.java:14)
Test run finished after 281 ms
[ 5 containers found ]
[ 0 containers skipped ]
[ 5 containers started ]
[ 0 containers aborted ]
[ 5 containers successful ]
[ 0 containers failed ]
[ 10 tests found ]
[ 0 tests skipped ]
[ 10 tests started ]
[ 0 tests aborted ]
[ 8 tests successful ]
[ 2 tests failed ]