[
http://jira.codehaus.org/browse/MCOBERTURA-83?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=143268#action_143268
]
Stephen Connolly commented on MCOBERTURA-83:
--------------------------------------------
Be aware, running the tests twice is actually a good thing.
I have had tests that pass when run with cobertura even though the underlying
code is broken... i.e. running the tests normally and they fail!
I have had tests that fail when run with cobertura and pass without...
In both cases there is usually a bug that I would not have found if I had only
run the tests once.
Please reconsider trying to run them only once.... in reality you should try
and run them five or six times (Sun JVM, IBM JVM, BEA JVM, both with and
without coverage... and consider using both cobertura and emma)
If there is a discrepancy between any of these runs then likely you have badly
written code and a bug just waiting to be found.
> Can't run install and cobertura:cobertura without running test phase twice
> --------------------------------------------------------------------------
>
> Key: MCOBERTURA-83
> URL: http://jira.codehaus.org/browse/MCOBERTURA-83
> Project: Maven 2.x Cobertura Plugin
> Issue Type: Bug
> Affects Versions: 2.2
> Reporter: Hugo Palma
> Priority: Critical
>
> 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 contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.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