Skip to content

Instantly share code, notes, and snippets.

@wkorando
Created February 20, 2019 20:04
Embed
What would you like to do?
public class TestKitExample {
@Test
void failIfTestsAreSkipped() {
Events testEvents = EngineTestKit
.engine("junit-jupiter")
.selectors(selectClass(TestKitSubject.class))
.execute()
.tests();
testEvents.assertStatistics(stats -> stats.skipped(1));
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment