JUnit4 and JUnit5 tests not running in IntelliJ
问题 I am trying to use JUnit4 and JUnit5 tests in the same project in IntelliJ IDEA 2017.1.5. Until now, all tests were based on JUnit4. I added the jupiter , platform and vintage dependencies to my pom.xml (including the junit-platform-surefire-provider and junit-vintage-engine for the surefire plugin). Now, neither my example test for JUnit4 nor the one for JUnit 5 are executed. Instead, I get the following error: Exception in thread "main" java.lang.NoSuchMethodError: org.junit.platform