File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed
platform-tests/src/test/java/org/junit/platform/testkit/engine Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -36,6 +36,26 @@ void executionsFromSkippedTestEvents() {
3636 assertThat (testEvents .skipped ().executions ().count ()).isEqualTo (1 );
3737 }
3838
39+ @ Test
40+ void executionsFromStartedTestEvents () {
41+ Events testEvents = getTestEvents ();
42+
43+ // We expect 3 if the executions are created BEFORE filtering out "finished" events.
44+ assertThat (testEvents .executions ().started ().count ()).isEqualTo (3 );
45+ // We expect 0 if the executions are created AFTER filtering out "finished" events.
46+ assertThat (testEvents .started ().executions ().count ()).isEqualTo (0 );
47+ }
48+
49+ @ Test
50+ void executionsFromFinishedTestEvents () {
51+ Events testEvents = getTestEvents ();
52+
53+ // We expect 3 if the executions are created BEFORE filtering out "started" events.
54+ assertThat (testEvents .executions ().finished ().count ()).isEqualTo (3 );
55+ // We expect 0 if the executions are created AFTER filtering out "started" events.
56+ assertThat (testEvents .finished ().executions ().count ()).isEqualTo (0 );
57+ }
58+
3959 @ Test
4060 void executionsFromSucceededTestEvents () {
4161 Events testEvents = getTestEvents ();
You can’t perform that action at this time.
0 commit comments