Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

JUnit 5 came out in September 2017, and is recommended as the preferred JUnit version to use when working with Java 8+, its it's also a highly requested feature of NetBeans users and so we need to start to outline how we provide support for JUnit 5 in Apache NetBeans (incubating).

...

NetBeans allows users to add libraries to their projects via the Tools -> Libraries menu items.  We should include JUnit 5.x libraries into this as standard.  Note JUnit 5 is a departure from pervious previous versions, as such we will need to include the following artefacts:

...

Include a Test class template into the IDE that can be used by users to create a blank JUnit 5.x unit test.

JUnit 5.x Test Suite Template

Currently, JUnit 5 doesn't support Jupiter Test Suites - https://github.com/junit-team/junit5/issues/744. For now, we can include a dialog so that when a user attempts to create a Test Suite for a JUnit 5 project we point out its not supported yet.

Maven Projects - Create/Update Dialog

...

Users should still be able to right-click a unit test method and be able to execute that specific test with surefire.  Note in JUnit 5.x tests can be annotated with: @Test, @ParamerizedTest, @RepeatedTest, any annotation that extends @Testable

...