JUnit 5 M4 and IntelliJ IDEA 2017.1

Answered

I downloaded today: https://github.com/junit-team/junit5-samples

When I start the tests of "junit5-gradle-consumer" in IntelliJ the result is 1 passed and 5 not started. Only the one JUnit 4 test passed, which is not correct.

Connected to the target VM, address: '127.0.0.1:55015', transport: 'socket'
Apr 03, 2017 11:54:58 AM org.junit.platform.launcher.core.ServiceLoaderTestEngineRegistry loadTestEngines
INFO: Discovered TestEngines with IDs: [junit-jupiter, junit-vintage]
Disconnected from the target VM, address: '127.0.0.1:55015', transport: 'socket'
Process finished with exit code -1

On commandline the result is 4 tests passed, 1 test skipped, which is correct.

I assumed IntelliJ IDEA already supports JUnit 5 milestones.

Is there a solution?

 

0
2 comments
Avatar
Permanently deleted user

Thank you for the quick reply. Actually I wanted to use M4 and not M3.

Seeing that problem, a few suggestions come to my mind:

  1. Making it possible to update the JUnit plugin without having to wait for a next release of whole IntelliJ IDEA (EA or whatever).
  2. JUnit plugin developer teams could test against the latest version of JUnit 5 to early detect and fix such issues.
0

Please sign in to leave a comment.