2

Q1. Is there any plugin that can provide assistance to debug tests based out of Junit5 on intelliJ IDEA 2015.x?

I've gone through articles over the Internet including Running tests for JUnit5 and using Junit5 in intelliJ IDEA which agreed reads out -

IntelliJ IDEA supports running tests on the JUnit Platform since version 2016.2.

Present scenario -

  1. Projects framed on Maven using JUnit5
  2. Our team has people working on the different version of IntelliJ.
  3. People with older version of intelliJ are able to execute the tests(mvn test) but not debug these using the intelliJ.

Q2. Does this imply upgrading to 2016.2+ in order to contribute to projects using Junit5?

Naman
  • 27,789
  • 26
  • 218
  • 353
  • JUnit 5 has been changing a lot recently and is still not released at this moment. IntelliJ IDEA was updated as well to support the changes in JUnit 5, the proper support for JUnit 5 M4 is available in 2017.1.3 version. – CrazyCoder Jun 05 '17 at 09:48
  • @CrazyCoder Do you mean we should wait to implement junit-jupiter in tests unless there is a RELEASE for the same? – Naman Jun 05 '17 at 09:56
  • You can use M4 if you like with IntelliJ IDEA 2017.1.3, or you can wait until the final version is released. It's up to you. – CrazyCoder Jun 05 '17 at 09:56
  • Just to confirm *...and the debugging support would then be available for the older version of intelliJ as well.* @CrazyCoder Is it? – Naman Jun 05 '17 at 09:59
  • Older versions of IntelliJ IDEA will not be able to run/debug JUnit 5, most likely. – CrazyCoder Jun 05 '17 at 10:00
  • That's what I eventually thought to ask Q2. Is there an official confirmation on the same as well? – Naman Jun 05 '17 at 10:01
  • 1
    Initial support of JUnit 5 is available since 2016.2 version, but because of the recent incompatible changes in JUnit M4 you will need the current IntelliJ IDEA version for proper support. So, either stay on JUnit 4 or update to the current IDE and JUnit versions, simple as that. – CrazyCoder Jun 05 '17 at 10:03

0 Answers0