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
        

Thursday, July 19, 2012

Netbeans Plugin: Copy and Paste History - quick review

The Copy and Paste Histroy - Plugin for Netbeans is imho a small but very very usefull extension you should install to the Netbeans IDE.
There is just one Key-Feature:  

Enable more than one entry to CopyNPaste

But that's a killer-feature in some cases ;-)

By pressing ALT-V instead of CTRL-V you will get a list of the last history-entries you have copied. Just choose the right one and press ENTER - and that's all.
Just have a look: