Intellij idea tests compilation takes too long (compared with Eclipse)

后端 未结 4 1105
轮回少年
轮回少年 2021-01-18 10:57

When I \"junit\" some class, compilation in Idea takes about 4-5 sec. In Eclipse it takes milliseconds.

What should I do to speed up Intellij Idea compilation for te

相关标签:
4条回答
  • 2021-01-18 11:22

    There is plugin in Idea plugin repository which solve exactly this problem!

    0 讨论(0)
  • 2021-01-18 11:39

    Eclipse compiles on the fly (on save), so it does not have to do anything but to start the tests. Idea does not. Before starting the tests it has to make (compile all changed classes of the whole project). It is also not possible to start a test in idea when there is any compile error elsewhere in the project.

    0 讨论(0)
  • 2021-01-18 11:40

    I encountered such a problem using Gradle. Make sure that the tests run under Idea. Settings -> Build, Execution, Deployment -> Build Tools -> Gradle -> Run tests using -> IntelliJ IDEA

    0 讨论(0)
  • 2021-01-18 11:44

    I don't have IntelliJ in front of me but could it be that IntelliJ is set to do a clean compile before it runs the tests where Eclipse is set to do a make (I.e only compile changed classes)

    Just a thought

    0 讨论(0)
提交回复
热议问题