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?
source share