Hi Joshua,
Joshua ChaitinPollak wrote on Monday, August 13, 2007 6:19 PM:
> Hello,
>
> I'd like to setup the cobertura-maven-plugin so that I can do the
> following (or something close):
>
> Run with cobertura enabled:
>
> mvn -Dcoverage=true test
>
> Run with cobertura disabled:
>
> mvn test
>
> I suppose this is equivalent to 'mvn cobertura' vs. 'mvn test', but
> it will make more sense the other way for our developers here.
Use profiles.
> Lastly, it seems that when I run:
>
> "mvn site" with cobertura in my pom.xml, the test appear to be run
> twice, first 'normally' without cobertura enabled in the test phase,
> and then a second time with cobertura enabled. Is there a way to
> prevent this, so only the cobertura tests are run?
Again, use profiles. If the cobertura property is set, you may skip the tests
in surefire.
- Jörg
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email