smaiakov
smaiakov

Reputation: 480

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

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.

Upvotes: 7

Views: 1665

Answers (1)

Vladimir Salin
Vladimir Salin

Reputation: 3030

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.

Upvotes: 12

Related Questions