Slackbot
07/08/2022, 1:06 AMgrossws
07/08/2022, 3:34 AMVampire
07/08/2022, 12:09 PM@Isolated when running with parallel enabled and @RestoreSystemProperties or how it is called to automatically restore the properties after the test.Suraj Singh
07/08/2022, 4:27 PMYou could register another test task with different system property and select tests to run both in it and original test task. If you use junit5 you certainly could select tests by tags.@grossws @Vampire: Thanks for your inputs. Creating a new task seems to be easy option. I am thinking of creating a new task (type Test) something like below assuming it will launch tests in separate JVM.
task mySpecialTests(type: Test) {
include 'com/somepackage/**'
systemProperty 'some.prop', 'value'
jvmArgs '-XX:MaxPermSize=256m' --> Does it forces gradle to use separate JVM ?
}
BTW, does gradle launch Test type tasks in separate jvm, gradle doc doesn’t say about it.Vampire
07/08/2022, 9:23 PM