Mick Knutson wrote:
Can you please show me your Maven cfg then for this please?
From: Carlos Sanchez <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
To: Maven Users List <[email protected]>
Subject: Re: [maven] jcoverage examples please?
Date: Tue, 19 Jul 2005 16:18:23 -0700
Hi,
I suggest you to take a look at the cobertura plugin. Cobertura is a
fork of jcoverage actively developed, while jcoverage seems stalled.
http://maven-plugins.sourceforge.net//maven-cobertura-plugin/
Mick,
I just did a couple of experiments with both the jcoverage and the
cobertura plugins with a Maven project on which I had never used either.
If you download the plugins into your ${MAVEN_HOME}/plugins directory,
you can simply invoke the default goals of each plugin:
"maven [clean] jcoverage cobertura"
It isn't necessary that you execute the "clean" goal, I included it as
an option so that, if you use it, you will be able to see all of the
goals/subgoals that Maven will execute as it prepares your project for
instrumentation and then later as the test sets are run.
Unless you have special requirements that is all you have to do during
your normal development cycle, and since JCoverage and Cobertura are
pretty similar, you can choose between them. As was already said,
Cobertura is the active fork of the now moribund open source bits of the
JCoverage project (JCoverage continues to be developed and enhanced, but
that version is commercial.)
If you were to add a reference to the maven-cobertura-plugin to the
reports section of your pom (project.xml) file, then, if and when you
generate a website for your project using Maven, it will include the
Cobertura HTML report in the generated site.
If there are specific things that you need to tweak, take a look at the
properties available to you on the plugin's website.
I hope that this helps. If you have more detailed questions, don't
hesitate to email me directly and I'll attempt to offer more assistance.
Best regards,
Andy
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]