2

I have the following error: 'org.junit.platform.commons.JUnitException: TestEngine with ID 'junit-jupiter' failed to discover tests' when trying to run a test from the package with the structure test/java/mytest.class.

enter image description here

I am using <junit.jupiter.version>5.5.2</junit.jupiter.version>

Mark Rotteveel
  • 100,966
  • 191
  • 140
  • 197
Hugo Prin
  • 31
  • 1
  • 3
  • Show your pom file? Using an old version of junit jupiter and your Naming convention is wrong. Name the test class like `XYZTest.java` ... And also use `junit-jupiter-engine` as dependency (Which surefire version do you use?) and which version of IntelliJ Do you use? – khmarbaise Jun 30 '22 at 08:37
  • Thanks for your response ! I use 2.22.2 , IntelliJ 2021.3.2. I have junit-vintage-engine, should I also add junit-jupiter-engine ? – Hugo Prin Jun 30 '22 at 09:29
  • Please show your test code.... – khmarbaise Jun 30 '22 at 12:17

0 Answers0