IntelliJ 12.0.2 - Items in Test Sources folder not compiled

I have a game! 2.0, opened in IntelliJ 12.0.2 and created using the play idea command.

In the sources folder test, I created unit test (using JUnit, nothing special here).

Both ways to run this unit test:

  • From the command line: play test-only MyUnitTest => Works well
  • From IntelliJ IDE: Just use the Run button.

Compiling the output path of unit test in IntelliJ corresponds to compiling the output path of the play test command for tests.

What happened: IntelliJ worked well when MyTest.class was generated by the play command. It simply benefits from it once the .class file is deleted.

However, I do not want to use the play command and want to use the IDE to run the tests. When I manually delete MyTest.class from the compilation output path, I expect IntelliJ to recreate it when the test runs ... but nothing happened.

How can I get IntelliJ to compile my unit tests and put them in the appropriate path?

Maybe this is a problem with the latest version of IntelliJ EAP?

+4
source share
2 answers

According to the comments, it seems to be a bug specific to the external make option. If the problem is reproduced with the latest version of the IDEA 12.0.3 EAP version and the latest Scala plugin, it should be reported to YouTrack with a sample project reproducing it.

+1
source

This problem arose for me when I installed the Play 2.0 IntelliJ plugin. As soon as I deleted it, my test code compiled again.

0
source

All Articles