This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
By running a unit test (clicking with the right mouse button on the class in the project tree) the executed maven command is missing the package information: -Dtest=DependencyHandlerTest instead of -DTest=com.mycompany.web.tests.DependencyHandlerTest The current behaviour is, that all classes with the same name are executed instead of only the one in the package you have selected.
it should be possible to overload on individual project level, by using <test>${packageClassName}</test> instead of <test>${className}</test>. I'm not sure I want to do it globally right now, it seems the packaged version will only work with surefire plugin version 2.4+, older versions might not work (2.4 released in Jan 2008) Something to do in netbeans.next (not for 6.5)
Reproducible and seems like it ought to be fixed. If a pre-2.4 version of surefire is still listed as an explicit dep of the project, perhaps there can be a warning somewhere. In Maven 2.1.x, 2.4.3 is the managed version of surefire in the superpom; 2.0.x doesn't seem to mention surefire in the superpom so I guess it just uses the latest one?
core-main #07afd02eb328
Integrated into 'main-golden', will be available in build *201103170400* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/07afd02eb328 User: Jesse Glick <jglick@netbeans.org> Log: #147793: Unit Test Runner does not include package name of the class Surefire 2.4 has long been released and should be default for new projects. Any old projects using 2.3 or earlier can simply adjust the action mapping (anyway only affects projects not using CoS for tests). Otherwise would need to introduce a new token which expanded to either className or packageClassName based on PluginPropertyUtils.getPluginVersion(..., GROUP_APACHE_PLUGINS, PLUGIN_SUREFIRE) and ComparableVersion, which seems overkill.