Skip to content

Commit

Permalink
Test additional use cases in ExecutionsIntegrationTests
Browse files Browse the repository at this point in the history
Issue: #1356
  • Loading branch information
sbrannen committed Dec 19, 2018
1 parent 1a0b8fc commit 287e8e5
Showing 1 changed file with 20 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,26 @@ void executionsFromSkippedTestEvents() {
assertThat(testEvents.skipped().executions().count()).isEqualTo(1);
}

@Test
void executionsFromStartedTestEvents() {
Events testEvents = getTestEvents();

// We expect 3 if the executions are created BEFORE filtering out "finished" events.
assertThat(testEvents.executions().started().count()).isEqualTo(3);
// We expect 0 if the executions are created AFTER filtering out "finished" events.
assertThat(testEvents.started().executions().count()).isEqualTo(0);
}

@Test
void executionsFromFinishedTestEvents() {
Events testEvents = getTestEvents();

// We expect 3 if the executions are created BEFORE filtering out "started" events.
assertThat(testEvents.executions().finished().count()).isEqualTo(3);
// We expect 0 if the executions are created AFTER filtering out "started" events.
assertThat(testEvents.finished().executions().count()).isEqualTo(0);
}

@Test
void executionsFromSucceededTestEvents() {
Events testEvents = getTestEvents();
Expand Down

0 comments on commit 287e8e5

Please sign in to comment.