Is it no option to exclude some tests in IntelliJ IDEA Ultimate? I want to run unit tests in IntelliJ but exclude the integration tests. I name the integration tests with *IT.java
so the Maven failsafe plugin can run them seperatly from the unit tests.
Java – Excluding tests from being run in IntellIJ
intellij-ideajavajunitmaven
Related Topic
- Java – Create ArrayList from array
- Java – IntelliJ inspection gives “Cannot resolve symbol” but still compiles code
- Java – Maven does not find JUnit tests to run
- Maven – Prevent unit tests but allow integration tests in Maven
- Java – IntelliJ – Convert a Java project/module into a Maven project/module
- Intellij-idea – IntelliJ: Working on multiple projects
- Git – What to gitignore from the .idea folder
Best Answer
In the
JUnit
Run configuration set theTest kind
to Pattern, specify the following regular expression as the pattern:It matches against the class name, so you don't need to match
.java
extension. Regular expression will not match if the class name ends withIT
using the negative lookahead.