From: Jared R. <Jar...@sa...> - 2005-03-31 18:46:26
|
Hi Charles, I'm starting to play with Maven but am not an expert (or even a good = user!) yet. Should any part of your note be added to the Cobertura docs = so that people know how to use the plugin or does Maven present that = information to the end users? Jared =20 > -----Original Message----- > From: cob...@li...=20 > [mailto:cob...@li...] On=20 > Behalf Of Charles Blaxland > Sent: Tuesday, March 29, 2005 7:34 PM > To: cob...@li... > Subject: Re: [Cobertura-devel] Maven plugin >=20 > Hi All, >=20 > [I tried sending this mail previously with the plugin as an=20 > attachment, but it=20 > didn't seem to work - apologies if you get this twice. I've=20 > now attached the=20 > plugin to the maven JIRA issue at=20 > http://jira.codehaus.org/browse/MPJCOVERAGE-25] >=20 > I have created a basic maven plugin for Cobertura. It is=20 > based on the existing=20 > jcoverage plugin, however it does NOT support generating its=20 > own HTML report=20 > based on the XML coverage output as the existing jcoverage=20 > plugin does - rather=20 > it simply delegates to the cobertura-report ant task to do=20 > this work. The=20 > properties you can set are a subset of the jcoverage ones: >=20 > maven.cobertura.dir=3D${maven.build.dir}/cobertura > maven.cobertura.instrumentation=3D${maven.cobertura.dir}/classes > maven.cobertura.junit.fork=3Dyes > maven.cobertura.instrumentation.includes=3D**/*.class > maven.cobertura.instrumentation.excludes=3DNOT_DEFINED >=20 > The "cobertura" goal will instrument, run the tests and generate the > report. You can include the report in the site generation in=20 > the usual > maven way. >=20 > It depends on cobertura 1.2 at present. I couldn't find some of the > dependencies on the maven repo on ibiblio, so there may be a few > unsatisfied deps which require some manual installation when=20 > you run it > (maybe these could be distributed with the plugin?). >=20 > I've run it over a few of my projects (incl jdk1.5 ones) and=20 > it seems to > work OK. >=20 > Enjoy, > Charles >=20 >=20 >=20 > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from=20 > real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_id=3D6595&alloc_id=3D14396&op=3Dclick > _______________________________________________ > Cobertura-devel mailing list > Cob...@li... > https://lists.sourceforge.net/lists/listinfo/cobertura-devel >=20 |