jamesfredley commented on code in PR #15547:
URL: https://github.com/apache/grails-core/pull/15547#discussion_r3029447364
##########
gradle/functional-test-config.gradle:
##########
@@ -95,7 +95,20 @@ tasks.withType(Test).configureEach { Test task ->
task.outputs.dir
rootProject.layout.buildDirectory.dir('mongo-test-serialize')
}
- task.useJUnitPlatform()
+ task.useJUnitPlatform {
+ if (project.hasProperty('includeTestTags')) {
+ // Will only run tests that are tagged with specific tags
+ // e.g. @spock.lang.Tag('geb')
+ // Run with: ./gradlew iT -PincludeTags=geb (comma-separated list)
+ includeTags((project.property('includeTestTags') as
String).split(',')*.trim() as String[])
+ }
+ if (project.hasProperty('excludeTestTags')) {
+ // Will not run tests that are tagged with specific tags
+ // e.g. @spock.lang.Tag('geb')
+ // Run with: ./gradlew iT -PincludeTags=geb
Review Comment:
excludeTestTags
##########
gradle/functional-test-config.gradle:
##########
@@ -95,7 +95,20 @@ tasks.withType(Test).configureEach { Test task ->
task.outputs.dir
rootProject.layout.buildDirectory.dir('mongo-test-serialize')
}
- task.useJUnitPlatform()
+ task.useJUnitPlatform {
+ if (project.hasProperty('includeTestTags')) {
+ // Will only run tests that are tagged with specific tags
+ // e.g. @spock.lang.Tag('geb')
+ // Run with: ./gradlew iT -PincludeTags=geb (comma-separated list)
Review Comment:
includeTestTags
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]