Run unit tests in IntelliJ IDEA from multiple modules together
问题 How can I run all tests from two or more IDEA modules at once? I'm using many modules and it is important to run all of the unit tests often and when I choose more than one folder to run, there's no 'run' option on the context menu any more. 回答1: Best way way: (edit after 3 years) There is even a better way to achieve this. Select menu "Run" → "Edit Configurations...". Click green plus in left top corner and select JUnit. Select "Test kind" to "Pattern" and enter this regexp exactly as you