Join Slack
Powered by
Should this work for overriding which tests are ru...
# kotest
j
Jim
01/08/2021, 10:25 PM
Should this work for overriding which tests are run by gradle when I run
./gradlew test
?
Copy code
test.doFirst { System.setProperty("kotest.tags", "Unit") }
l
LeoColman
01/08/2021, 11:22 PM
I'm not sure if this works, as Gradle doesn't propagate properties to the JVM that tests are ran in
LeoColman
01/08/2021, 11:22 PM
IIRC there is a workaround to this
LeoColman
01/08/2021, 11:23 PM
https://github.com/gradle/gradle/issues/7773
j
Jim
01/08/2021, 11:24 PM
Hmmm it's close, but I'm actually wanting the default test target to disregard any command line tags so build doesn't run my integration tests
2
Views
Open in Slack
Previous
Next