You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by "Charles Blaxland (JIRA)" <ji...@codehaus.org> on 2005/03/30 02:25:45 UTC

[jira] Updated: (MPJCOVERAGE-25) Support Cobertura

     [ http://jira.codehaus.org/browse/MPJCOVERAGE-25?page=history ]

Charles Blaxland updated MPJCOVERAGE-25:
----------------------------------------

    Attachment: maven-cobertura-plugin.zip

I have created a basic maven plugin for Cobertura (see attachement). It is based on the existing jcoverage plugin, however it does NOT support the maven.jcoverage.report.template property - it always delegates to the cobertura-report ant task to generate the report.  The properties you can set are a subset of the jcoverage ones:

maven.cobertura.dir=${maven.build.dir}/cobertura
maven.cobertura.instrumentation=${maven.cobertura.dir}/classes
maven.cobertura.junit.fork=yes
maven.cobertura.instrumentation.includes=**/*.class
maven.cobertura.instrumentation.excludes=NOT_DEFINED

The "cobertura" goal will instrument, run the tests and generate the report.  You can include the report in the site generation in the usual maven way.

The plugin depends on cobertura 1.2 at present. I couldn't find some of the other dependencies on the maven repo on ibiblio, so there may be a few unsatisfied deps which require some manual installation when you run it (maybe these could be distributed with the plugin?).


> Support Cobertura
> -----------------
>
>          Key: MPJCOVERAGE-25
>          URL: http://jira.codehaus.org/browse/MPJCOVERAGE-25
>      Project: maven-jcoverage-plugin
>         Type: Improvement
>     Reporter: Nascif A. Abousalh-Neto
>     Assignee: Emmanuel Venisse
>  Attachments: maven-cobertura-plugin.zip
>
>
> Cobertura is a fork of JCoverage that is now in SourceForge (http://cobertura.sourceforge.net/) that was created to apply long standing patches. The API is supposed to be the same. It would be nice to re-use the work done in this plugin to support the new code base.

-- 
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
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org