How to deal with relative path in Junits between Maven and Intellij

前端 未结 5 1706
臣服心动
臣服心动 2021-01-30 08:37

I have a maven project with a module

/myProject
pom.xml
    /myModule
    pom.xml
       /foo
       bar.txt

Consider a Junit in myModule

5条回答
  •  感动是毒
    2021-01-30 09:32

    You can specify the working directory for the test runner in the Run/Debug Configurations window:

提交回复
热议问题