[ 
https://issues.apache.org/jira/browse/NETBEANS-6?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16051849#comment-16051849
 ] 

Marc Philipp commented on NETBEANS-6:
-------------------------------------

Regarding the annotation to look for: JUnit Jupiter (the new programming model) 
supports meta annotations. So you need to recursively check for annotations on 
all annotations on a method. But there's more than just {{@Test}}, e.g. 
{{@TestFactory}} or {{@ParameterizedTest}}. We've introduced a meta annotation 
({{@Testable}}, originally for IntelliJ IDEA) that marks classes or test 
methods. You should scan for {{@Testable}} to show UI to execute a single 
method.

The current Gradle task is called {{junitPlatform}}. However, this is likely to 
change when Gradle adds core support for the new JUnit platform. There will 
probably a new test task that supports JUnit 4, TestNG, JUnit 5 etc. Besides 
Gradle support, Netbeans also needs to interact with the new Launcher API for 
non-Gradle projects and implement a TestExecutionListener in order to show the 
test tree in the UI. Please refer to 
http://junit.org/junit5/docs/current/user-guide/#launcher-api for an 
introduction.

JUnit 5 is modularised, there's not a single JAR file anymore. You'll need at 
least junit-platform-launcher, junit-jupiter-engine, junit-vintage-engine, and 
their dependencies on the classpath of the JVM that's executing tests. Please 
see http://junit.org/junit5/docs/current/user-guide/#dependency-diagram for 
details.

> Add support for JUnit 5
> -----------------------
>
>                 Key: NETBEANS-6
>                 URL: https://issues.apache.org/jira/browse/NETBEANS-6
>             Project: Netbeans
>          Issue Type: New Feature
>          Components: java - JUnit
>            Reporter: Marc Philipp
>
> I’m a member of the JUnit team. We’re currently working on a major new 
> version: JUnit 5. It will require work by IDEs to support test execution and 
> reporting within the IDE. IntelliJ IDEA and Eclipse (on a branch) already 
> support the new JUnit Platform and the new Jupiter API to write tests.
> Are there any plans to add JUnit 5 support to Netbeans? If so, how can we 
> help?



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to