[
https://jira.codehaus.org/browse/MCOBERTURA-83?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=290668#comment-290668
]
Shant Stepanian commented on MCOBERTURA-83:
-------------------------------------------
Another option is to explicitly embed skipTests=false in the lifecycle.xml
file, as mentioned at this link
http://nayidisha.com/techblog/an-over-eager-code-coverage-tool Thus,
developers can configure their surefire plugin as they want, and add
<skipTests>true</skipTests> in their pom. Thus, when the regular test execution
goes through, it will get skipped; but it will get fired on the cobertura
plugin. From seeing the feedback on that link, it seems like it had success for
people
Either approach would seem fine, whether improving the standalone goals to work
as described in my previous post, or to embed some property in the cobertura
lifecycle that can toggle test execution in that lifecycle while disabling it
in the regular execution. If you are uncomfortable w/ the variable being called
"skipTests", then possibly you can coordinate w/ the surefire folks to see if
they can add some variable like "runOnlyForCoverage" tests, which could be
useful for other code coverage plugins too like EMMA or Clover
> Can't run install and cobertura:cobertura without running test phase twice
> --------------------------------------------------------------------------
>
> Key: MCOBERTURA-83
> URL: https://jira.codehaus.org/browse/MCOBERTURA-83
> Project: Maven 2.x Cobertura Plugin
> Issue Type: Bug
> Affects Versions: 2.2
> Reporter: Hugo Palma
> Priority: Critical
> Attachments: patch, reportOnlyAndInstrumentOutputDirPatch.patch,
> report-only.patch
>
>
> I want run as part of my CI process the goals:
> mvn install cobertura:cobertura
> The problem is that this causes the test phase to be ran twice.
> AFAIK, there's no way to do this and it's a major issue when doing CI.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email