Running JUnit Tests in Parallel in IntelliJ IDEA

后端 未结 3 2180
温柔的废话
温柔的废话 2020-12-17 15:43

I have a large suite of tests that takes about half an hour to run and would love to be able to the test classes in parallel.

Is there a way to do that with IntelliJ

3条回答
  •  轮回少年
    2020-12-17 15:57

    Answering late for posterity.

    You can make JUnit tests run in parallel (or serial) to any level of granularity in IntelliJ by changing the Fork mode in the test's run configuration.

    Be careful not to confuse this with the Allow parallel run option, which lets you start the test execution multiple times within your IDE.

提交回复
热议问题