IntelliJ IDEA 2016.3.1 RC Updates JUnit 5 Support to M3
Great news! A fresh update for IntelliJ IDEA 2016.3 is coming soon. Today we’ve published its RC build.
In addition to bugfixes, this build updates JUnit 5 support to M3. Note that if you plan to run JUnit 5 M2, you have to either use an earlier version of IntelliJ IDEA, or manually include JUnit 5 M2 dependencies in your classpath (junit-platform-launcher, junit-platform-commons, junit-platform-engine; junit-jupiter-api and junit-jupiter-engine for Jupiter; and junit-vintage-engine for Vintage).
As always, your feedback is very welcome in our issue tracker.
Develop with Pleasure!
Gunjan Shah says:
January 17, 2019Am using IntelliJ Idea ultimate 2018.3 licensed version.
We started using Junit 5 and am not able to run tests via IntelliJ. From command-line I can run unit tests.
Error:
Jan 16, 2019 9:38:31 PM org.junit.platform.launcher.core.DefaultLauncher handleThrowable
WARNING: TestEngine with ID ‘junit-vintage’ failed to discover tests
org.junit.platform.commons.util.PreconditionViolationException: Could not load class with name: “our class name”
Jan 16, 2019 9:38:31 PM org.junit.platform.launcher.core.DefaultLauncher handleThrowable
WARNING: TestEngine with ID ‘junit-vintage’ failed to discover tests
org.junit.platform.commons.util.PreconditionViolationException: Could not load class with name: “our class name”
They are warnings but still none of tests gets executed.
junit5Version = ‘5.3.2’
Please let me know.
Thanks