The documentation for Test.workingDir says: The working directory for the process. Defaults to the project directory.
When I output the workingDir, it looks OK as it is set per subproject, which is what I actually want.
systemProperties = System.properties
println "WD for tests of subproject " + project + " is " + workingDir }
But in my test code the Java working directory is obviously set to the project dir of the root project, breaking my tests. Is there a test-ng-specific option to set the workingDirectory for the test run or what else am I doing wrong?
I also posted this on stackoverflow too quickly so ignore that, if you come across it twice.