Prevent IntelliJ from compiling src classes with unit testing

I have the following project structure

/
   src/  # src-files for the app
    org.mayapp.main.Main/
 test/ # unit-tests
    org.myapp.test.main.MainTestSuite/

When I want to run my Unit-Tests, for example. org.myapp.test.main.MainTestSuiteIntelliJ is always trying to compile all the packages in the whole project.

I want to prevent this because I'm currently developing part of my application and still want to run Unit-Tests in other parts of the application.

Is there a way to prevent IntelliJ from compiling the entire project before starting Unit-Tests?

+3
source share
1 answer

When running a test in IntelliJ, you will see that it adds a launch target for this test, see "Run -> Edit Configurations" in the JUnit section.

, " ", "". , Make IntelliJ / .

, IntelliJ , .

+7

All Articles