Centrally set a system property that gets passed to all tests in a sub-directory?
jai.forums2013 at gmail.com
Sun Nov 21 10:00:05 UTC 2021
Is there a way in jtreg where a particular Java system property can be
passed to all tests that run in othervm mode and belong to a particular
sub-directory in the test root?
Something like "othervm.test.java.opts"? What I'm trying to solve is
instead of editing each of the 10+ test classes that have a @run
testng/othervm or @run main/othervm to include -Dfoo=bar in the test
definition, I would like to have a TEST.properties for that
sub-directory which would contain this system property to be set while
launching those tests? I have been looking the documentation
https://openjdk.java.net/jtreg/tag-spec.html#config but couldn't find
anything that would help in this case.
More information about the jtreg-use