How to configure IntelliJ 13 to compile junit tests in a Play Framework project

I created a new Play Framework 2.3.4 project with IntelliJ IDEA 13, everything works fine, except for unit tests. When I create a test and run it, intelliJ says:

Class not found: "myclass" 

When I run the activator test, it compiles the class, and I can run it from intelliJ, but I would like to solve this problem, because launching the activator after each test change is very inconvenient.

Not a single turn of the external build server, as well as updating the game and intelliJ to the latest version, helped.

Did you manage to solve this problem?

+5
source share
1 answer

Go to the "Run / Debug Configurations" of your unit test and change the "Use classpath of module" to the "root" module and set the "Make Project" in the "Before You Run" section. At least it helped me solve the same error.

0
source

Source: https://habr.com/ru/post/1202915/


All Articles