Skip to content

Demo project for JUnit & Spock test grouping using JUnit 5 tags

Notifications You must be signed in to change notification settings

MTJB/example-junit-spock-tags

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Overview 👋

Demo project for JUnit & Spock test grouping using JUnit 5 tags.

Available test tags 🏷️

Examples 👨🏻‍🏫

Run all tests

./gradlew test

Run all Spock tests

./gradlew test -Dgroups=Spock

Run all JUnit tests

./gradlew test -Dgroups=JUnit

Run all Multiply tests

./gradlew test -Dgroups=Multiply

Run all Multiply or Divide tests

Note: this example is using JUnit tag expressions, support for exclusions could be built out by parsing the groups parameter and leveraging the excludeTags configuration within build.gradle.

./gradlew test -Dgroups="Multiply | Divide"

About

Demo project for JUnit & Spock test grouping using JUnit 5 tags

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published