Just to clarify that because many people get this wrong. Not the cobertura-maven-plugin is running the tests twice, but maven INTENTIONALLY first runs the tests un-instrumented, and only after that uses bytecode enhancements on the class to get code coverage numbers.
The reason for this is that the class instrumentation sometimes leads to test errors and would lead to people searching for hours for phantom errors. LieGrue, strub --- On Tue, 6/28/11, Collins, Russell <rcoll...@corelogic.com> wrote: From: Collins, Russell <rcoll...@corelogic.com> Subject: Re: [mojo-user] Cobertura Maven Plugin To: "roland.asm...@adesso.at" <roland.asm...@adesso.at> Cc: "user@mojo.codehaus.org" <user@mojo.codehaus.org> Date: Tuesday, June 28, 2011, 4:09 PM Thank you for letting me know that. -----Original Message----- From: Asmann, Roland <roland.asm...@adesso.at> Reply-to: "Asmann, Roland" <roland.asm...@adesso.at> To: user@mojo.codehaus.org <user@mojo.codehaus.org> Cc: Collins, Russell <rcoll...@corelogic.com> Subject: Re: [mojo-user] Cobertura Maven Plugin Date: Tue, 28 Jun 2011 17:56:15 +0200 You can't... Only solution I see is to NOT use the plugin, but add Cobertura using the Ant-tasks... On 28.06.2011 17:51, Collins, Russell wrote: > I am trying to use this plugin but it keeps running the tests twice. I > do not want to run the tests twice. How do I turn this off? > > Russell Collins > ****************************************************************************************** > > This message may contain confidential or proprietary information > intended only for the use of the > addressee(s) named above or may contain information that is legally > privileged. If you are > not the intended addressee, or the person responsible for delivering it > to the intended addressee, > you are hereby notified that reading, disseminating, distributing or > copying this message is strictly > prohibited. If you have received this message by mistake, please > immediately notify us by > replying to the message and delete the original message and any copies > immediately thereafter. > > Thank you. > ****************************************************************************************** > > CLLD -- Roland Asmann Senior Software Engineer adesso Austria GmbH Floridotower 26. Stock T +43 1 2198790-27 Floridsdorfer Hauptstr. 1 F +43 1 2198790-927 A-1210 Wien M +43 664 88657566 E roland.asm...@adesso.at W www.adesso.at ------------------------------------------------------------- >>> business. people. technology. <<< ------------------------------------------------------------- --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email