I have a Play! 2.0 application opened in IntelliJ 12.0.2 and created with play ideacommand.
Within test sources folder, I’ve created a unit test (using JUnit, nothing special here).
Both ways to run this unit test:
- From Command-line:
play test-only MyUnitTest=> Works well - From IntelliJ IDE: Simply using “Run” button.
Output path compilation of unit test in IntelliJ matches the output path compilation of the command play test for tests.
What happened: IntelliJ well behaves when MyTest.class has been generated by the playcommand. It just benefit from it as soon as .class file is not removed.
However, I don’t want to use play command and want to benefit from IDE to run tests.
When I manually remove MyTest.class from output compilation path, I expect IntelliJ to recreate it when I launch the test…but nothing happened.
How can I force IntelliJ to compile my unit tests and output them into the corresponding path?
May it be an issue with the most recent IntelliJ EAP version?
According to the comments is seems to be a bug specific to the external make option. If the issue is reproducible with the latest IDEA 12.0.3 EAP version and latest Scala plug-in, it should be reported in YouTrack with the sample project reproducing it.