Skip to content

Instantly share code, notes, and snippets.

@wkorando
Created February 20, 2019 20:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wkorando/d7c71345c6d0b91ebb37f3b029c94314 to your computer and use it in GitHub Desktop.
Save wkorando/d7c71345c6d0b91ebb37f3b029c94314 to your computer and use it in GitHub Desktop.
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