我有两个模块的 spring-boot 项目
但是当我尝试运行测试时,Idea 不会生成 ./idea/modules 文件夹,我得到了下一个错误
' Cannot start process, the working directory /home/../my_project_name/.idea/modules' does not exist
重新导入或重建整个项目并不能解决问题。
最佳答案
这似乎是 Intellij IDEA 2018 的已确认问题:see this thread .当我坚持运行单元测试时,推荐的解决方案对我来说效果很好:
As a workaround please manually change the value from $MODULE_DIR$ to %MODULE_WORKING_DIR% for 'Working Directory' in Run/Debug configuration. To change it for all new projects please update Default Run/Debug Configuration.
希望对您也有帮助。
关于intellij-idea-2018 - 无法运行测试 .idea/modules' 不存在,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49795452/