Skip to content

Organizing tests with TestKit #3162

Answered by sbrannen
dant3 asked this question in Q&A
Discussion options

You must be logged in to vote

Yes, you have a few options.

  • Introduce a naming convention for your test classes that does not include your "test cases" that you execute via the EngineTestKit.
  • Introduce a tag or tags for such "test cases", annotate those test cases with @Tag("my-tag"), and exclude the "my-tag" tag from your build.

In the JUnit 5 and Spring Framework builds, we primarily do the former.

Specifically, all of our "real" test classes match the pattern *Tests, and all of our "test cases" match the pattern *TestCase. We therefore only run the *Tests from our build.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by sbrannen
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants