Product Version: NetBeans IDE 8.1 (Build 201510222201)
Java: 1.8.0_66; Java HotSpot(TM) 64-Bit Server VM 25.66-b17
Runtime: Java(TM) SE Runtime Environment 1.8.0_66-b17
System: Linux version 4.2.0-16-generic running on amd64; UTF-8; en_US (nb)
User directory: /home/tkruse/.netbeans/8.1
Cache directory: /home/tkruse/.cache/netbeans/8.1
I have a multi module maven project. When using surefire 2.19 test execution is not performed and an error is shown that no tests are executed when running "test file" from Netbeans.
When using surefire 2.18.1 it works.
Might be related to https://issues.apache.org/jira/browse/SUREFIRE-983
The surefire bug is reported here, although the maintainer insists it is a "wish":
The maintainer appears to have no intention of fixing the issue. He insists the proper behavior is for the test name not to be a class name, but a path name to a java file. However, as I commented in that issue, the support for using a test name in class name format has been supported on all versions of surefire between 2.4 and 2.18. Only in 2.19 has this feature been dropped.
In diffing 2.18.1 to 2.19, there have been considerable changes made to the implementation. Apparently these changes were of such a nature that the maintainer feels it would be too onerous a change to support specifying the test as a class name again.
The attitude of the surefire maintainer is indeed quite unique and egocentric.
Perhaps a note in the release notes would help to prevent other netbeans users to struggle with this. (Took me hours to find the culprit and was a really bad experience.)
I assume there is nothing that can be done in netbeans, so I suggest to close as wontfix.
(In reply to everflux from comment #3)
> I assume there is nothing that can be done in netbeans, so I suggest to
> close as wontfix.
you are correct. Until this is fixed on surefire's side in 3.0 surefire 2.18 should be used. Thank you for tracking this down and for your comments on that bug/wish :)
Please add a note to the Netbeans 8.1 release notes regarding this known issue, thank you.
( https://netbeans.org/community/releases/81/relnotes.html#known_issues )
(In reply to everflux from comment #5)
> Please add a note to the Netbeans 8.1 release notes regarding this known
> issue, thank you.
> ( https://netbeans.org/community/releases/81/relnotes.html#known_issues )
Alyona, could you please add this to relnotes? Thank you
In the mean time issue https://issues.apache.org/jira/browse/SUREFIRE-1191 is marked as fixed.
You should now be able to update to version 2.19.1 of the plugin.
Quite annoying; I cannot find version 2.19.1 of surefire-plugin. Downgrading to 2.18 helps.
2.19.1 is not yet released, unfortunately.
FYI: 2.19.1 is finally released. I did not yet test if the regression is fixed, though, but the surefire bug is mentioned as fixed in the release notes.