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 201206050001) Java: 1.7.0_04; Java HotSpot(TM) 64-Bit Server VM 23.0-b21 System: Mac OS X version 10.7.4 running on x86_64; US-ASCII; en_US (nb) User directory: /Users/tomas/Library/Application Support/NetBeans/dev Cache directory: /Users/tomas/Library/Caches/NetBeans/dev ------------ - create maven javase project - turn CoS on also for tests - add testNG to test classpath (6.5.2) - run AppTest.java (default JUnit test generated in project) by Test File action from popup -> no test is run cd /tmp/mvn3; JAVA_HOME=/Library/Java/JavaVirtualMachines/1.7.0.jdk/Contents/Home "/Applications/NetBeans/NetBeans Dev 201206050001.app/Contents/Resources/NetBeans/java/maven/bin/mvn" -f /tmp/mvn3/pom.xml -Dtest=com.mycompany.mvn3.AppTest test-compile surefire:test Scanning for projects... ------------------------------------------------------------------------ Building mvn3 1.0-SNAPSHOT ------------------------------------------------------------------------ [resources:resources] [debug] execute contextualize Using 'UTF-8' encoding to copy filtered resources. skip non existing resourceDirectory /tmp/mvn3/src/main/resources [compiler:compile] Compiling 1 source file to /tmp/mvn3/target/classes [resources:testResources] [debug] execute contextualize Using 'UTF-8' encoding to copy filtered resources. skip non existing resourceDirectory /tmp/mvn3/src/test/resources [compiler:testCompile] Compiling 1 source file to /tmp/mvn3/target/test-classes [surefire:test] Surefire report directory: /tmp/mvn3/target/surefire-reports ------------------------------------------------------- T E S T S ------------------------------------------------------- Running com.mycompany.mvn3.AppTest Tests run: 0, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.375 sec Results : Tests run: 0, Failures: 0, Errors: 0, Skipped: 0 ------------------------------------------------------------------------ BUILD FAILURE ------------------------------------------------------------------------ Total time: 3.778s Finished at: Tue Jun 05 17:18:58 CEST 2012 Final Memory: 16M/132M ------------------------------------------------------------------------ Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.10:test (default-cli) on project mvn3: No tests were executed! (Set -DfailIfNoTests=false to ignore this error.) -> [Help 1]
I think this bug is no longer valid and could be closed. Fanis?
I can no longer reproduce this in latest builds. Probably fixed as a side effect of re-writing compile on-save policy in maven projects support. Closing this one. Thanks