Reputation: 1161
Running whole test class works just fine. However when I try to click gutter icon next to the test method I get following error:
org.junit.platform.commons.JUnitException: TestEngine with ID 'junit-jupiter' failed to discover tests
Upvotes: 0
Views: 3282
Reputation: 1161
Problem is related with newest changes in junit platform. Not sure what exactly changed, but following steps fixed tests for me:
<dependency> <groupId>org.junit.platform</groupId> <artifactId>junit-platform-commons</artifactId> <version>1.5.2</version> </dependency>
<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-test</artifactId> <exclusions> <exclusion> <groupId>org.junit.vintage</groupId> <artifactId>junit-vintage-engine</artifactId> </exclusion> </exclusions> <scope>test</scope> </dependency>
Upvotes: 1