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

Francesco Illuminati commented on NETBEANS-5115:
------------------------------------------------

It seems that maven-surefire-plugin 2.12.4 is the only supported version (and 
the default one if none is specified in pom.xml). Apart from it being a quite 
old version, it doesn't seem to support JUnit 5 too well (in fact it cannot 
execute single tests). If a single test is requested a dialog appears asking to 
upgrade to maven-surefile-plugin version 2.22.0, it will update pom.xml, but 
then tests wouldn't work anymore.

> "No tests executed" on maven project
> ------------------------------------
>
>                 Key: NETBEANS-5115
>                 URL: https://issues.apache.org/jira/browse/NETBEANS-5115
>             Project: NetBeans
>          Issue Type: Bug
>          Components: utilities - Test Runner
>    Affects Versions: 12.2, 12.3
>         Environment: Linux version 5.4.0-53-generic (buildd@lcy01-amd64-007) 
> (gcc version 9.3.0 (Ubuntu 9.3.0-17ubuntu1~20.04)) #59-Ubuntu SMP Wed Oct 21 
> 09:38:44 UTC 2020
> openjdk 15-ea 2020-09-15
> OpenJDK Runtime Environment (build 15-ea+32-Ubuntu-220.04)
> OpenJDK 64-Bit Server VM (build 15-ea+32-Ubuntu-220.04, mixed mode, sharing)
>            Reporter: Francesco Illuminati
>            Priority: Major
>         Attachments: nb12-test-error-2021-02-06_14.21.44.mp4
>
>
> On a maven java project executing project test or testing a single file 
> always returns "No tests executed" even if the maven goal is run (as can be 
> checked in the output window).
> This was tested with Junit Jupiter 5.6.0 and 5.7.0 and with 
> maven-surefire-plugin 3.0.0-M(1-5) and 2.22.2. 
>  It worked fine on NB 12.1 but only after the maven-surefire-pluginĀ 3.0.0-M4 
> is manually added to pom.xml (would be nice if it was added automatically).



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org
For additional commands, e-mail: commits-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to