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.
Product Version = NetBeans IDE Dev (Build 201210050002) Operating System = Windows 7 version 6.1 running on x86 Java; VM; Vendor = 1.7.0_07 Runtime = Java HotSpot(TM) Client VM 23.3-b01 If I try to test or Debug Test a file I always get: [surefire:test] Tests are skipped. I went and disabled the skip test option in the Maven options to see if it got broken somehow without luck. The Maven command doesn't show an option skipTest=true or something to disable them. When I test the whole project it works fine.
The only way to make it work is forcing the -DskipTest=false when calling the goal. i.e. -Dtest=com.validation.manager.core.db.ProjectTest --check-plugin-updates test-compile surefire:test -DskipTests=false
Created attachment 125478 [details] IDE log
Could you please attach problematic project so I'll be able to reproduce the problem? Also can you please check whether the problem occurs also in Maven Java SE projects? Thanks in advance!
It worked fine on build: 201210070002, maybe an intermittent issue.
I tried in the wrong project. It seems to be specific to my project. I tried both a JavaSE project and another Maven Web project successfully. You can find the sources here: https://javydreamercsw@bitbucket.org/javydreamercsw/validation-manager
(In reply to comment #5) > I tried in the wrong project. It seems to be specific to my project. I tried > both a JavaSE project and another Maven Web project successfully. You can find > the sources here: > https://javydreamercsw@bitbucket.org/javydreamercsw/validation-manager I can't access that site directly without registration. Would it be possible to attach the project right here? (or you can send me username/password privately to the martin.janicek@oracle.com)
That's the Mercurial repository URL. You should be able to checkout from there.
I've checkout your project, run project build with dependencies and now I can successfully run Test File and NetBeans show me correct results. For example for TestProjectTest.java I can see: [surefire:test] Surefire report directory: /tmp/validation-manager/Validation-Manager-Web/target/surefire-reports Results : Tests run: 1, Failures: 0, Errors: 0, Skipped: 0 ------------------------------------------------------------------------ BUILD SUCCESS ------------------------------------------------------------------------
You have set <skipTests>true</skipTests> in you pom.xml - which is most probably the reason why you need to set -DskipTests=false explicitly.
Closing the issue as INVALID. The tests are skipped because of the pom.xml configuration: <skipTests>true</skipTests>