How to conditionalize GUI tests using Netbeans/Maven vs maven on command line invocation

Posted by Ilane on Stack Overflow See other posts from Stack Overflow or by Ilane
Published on 2010-05-24T21:01:48Z Indexed on 2010/05/24 22:51 UTC
Read the original article Hit count: 183

Filed under:
|

I'd like to have a single project pom but have my GUI tests always run when I'm invoking JUnit on Netbeans, but have them conditional (on an environment variable?) when building on the command line (usually for production build - on a headless machine, but sometimes just for build speed).

I don't mind instrumenting my JUnit tests for this, as I already have to set up my GUI test infrastructure, but how do I conditionalize my pom!

Netbeans 6.5 with Maven plugin.

Any ideas how I can accomplish this?

Ilane

© Stack Overflow or respective owner

Related posts about maven-2

Related posts about netbeans6.5