Friday, July 27, 2012

Netbeans and maven: no single test execution

If you are using Netbeans in a maven build environment and got the problem that you cann't execute a single test you've probably specified the surefire 2.12 plugin... that's a bad idea :-)

Netbeans will prompt a:

No tests executed (0, 0)

The reason is, that this version of the surefire-plugin (2.12) has a bug and it's not possible to execute single tests or even single test-files.

See Surefire 2.12 cannot run a single test - JIRA for more information about the status of this bug.

The solution:
Quite simple - go back to surefire 2.11 :-)


        
          org.apache.maven.plugins
          maven-surefire-plugin
          2.11
        

No comments:

Post a Comment