I have a maven project with a module
/myProject pom.xml /myModule pom.xml /foo bar.txt
Consider a Junit in myModule>
You can specify the working directory for the test runner in the Run/Debug Configurations window: