Can't run tests .idea/modules' does not exist
Asked Answered
E

1

7

I have the spring-boot project with two modules But Idea does not generate ./idea/modules folders those when I am trying to run tests I got next error

' Cannot start process, the working directory /home/../my_project_name/.idea/modules' does not exist

Reimport or rebuild the whole project not solve the issue.

Equanimous answered 12/4, 2018 at 11:32 Comment(0)
M
12

It seems to be a confirmed issue for Intellij IDEA 2018: see this thread. The recommended solution worked fine for me when I was stuck with running unit tests:

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.

Hope that helps you as well.

Malleolus answered 25/4, 2018 at 20:53 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.