You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Hilco Wijbenga <hi...@gmail.com> on 2008/01/11 21:30:53 UTC

Cobertura

I'd like to do something like this:
http://www.devx.com/Java/Article/36231 but not with Ant but with
Maven. (In summary, it extracts the line coverage rate from the
coverage.xml file created by Cobertura and uses it to make sure future
builds can only do better, not worse.)

The problem is that the Cobertura Maven plugin doesn't seem to make
the resulting coverage percentage public. I can do a
cobertura:dump-datafile but this doesn't output to a file. Besides
there does not seem to be a way to tell the plugin to use any kind of
configuration file.

The only solution I can think of is to go the AntRun plugin route...
Does anyone have a better idea?

Cheers,
Hilco

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


Re: Cobertura

Posted by Stephen Connolly <st...@gmail.com>.
Use
<configuration>
  <formats>
    <format>xml</format>
    <format>html</format>
  </formats>
</configuration>
The xml file is a standard cobertura xml report

On Jan 11, 2008 8:43 PM, Wayne Fay <wa...@gmail.com> wrote:

> Modify the Cobertura plugin so it does what you want. ;-)
>
> It is open source, after all.
> http://mojo.codehaus.org/cobertura-maven-plugin/
>
> Wayne
>
> On 1/11/08, Hilco Wijbenga <hi...@gmail.com> wrote:
> > I'd like to do something like this:
> > http://www.devx.com/Java/Article/36231 but not with Ant but with
> > Maven. (In summary, it extracts the line coverage rate from the
> > coverage.xml file created by Cobertura and uses it to make sure future
> > builds can only do better, not worse.)
> >
> > The problem is that the Cobertura Maven plugin doesn't seem to make
> > the resulting coverage percentage public. I can do a
> > cobertura:dump-datafile but this doesn't output to a file. Besides
> > there does not seem to be a way to tell the plugin to use any kind of
> > configuration file.
> >
> > The only solution I can think of is to go the AntRun plugin route...
> > Does anyone have a better idea?
> >
> > Cheers,
> > Hilco
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

Re: Cobertura

Posted by Wayne Fay <wa...@gmail.com>.
Modify the Cobertura plugin so it does what you want. ;-)

It is open source, after all.
http://mojo.codehaus.org/cobertura-maven-plugin/

Wayne

On 1/11/08, Hilco Wijbenga <hi...@gmail.com> wrote:
> I'd like to do something like this:
> http://www.devx.com/Java/Article/36231 but not with Ant but with
> Maven. (In summary, it extracts the line coverage rate from the
> coverage.xml file created by Cobertura and uses it to make sure future
> builds can only do better, not worse.)
>
> The problem is that the Cobertura Maven plugin doesn't seem to make
> the resulting coverage percentage public. I can do a
> cobertura:dump-datafile but this doesn't output to a file. Besides
> there does not seem to be a way to tell the plugin to use any kind of
> configuration file.
>
> The only solution I can think of is to go the AntRun plugin route...
> Does anyone have a better idea?
>
> Cheers,
> Hilco
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

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