Hi, I’m writing scala play app using
https://docs.gradle.org/3.3/userguide/play_plugin.html
I want to categorize my tests using junit tags. I don’t understand how to add special task to my gradle build script. This one snippet works for traditional scala apps:
// specific test task for specific test tag
task testEndToEnd(type: Test) {
useJUnit {
includeCategories 'tags.EndToEnd'
testLogging {
events "passed", "skipped", "failed", "standardOut", "standardError"
}
}
maxParallelForks = 1
}
// regular tests
test {
useJUnit {
excludeCategories 'tags.EndToEnd'
testLogging {
events "passed", "skipped", "failed", "standardOut", "standardError"
}
}
maxParallelForks = 8
}
What is the right way to do it for gradle play plugin?