Subject: Re: How can i run clover and cobertura permanantly?
No, this is not the correct way.
You need both the node in the reporting section as well as the
instrumentation node in the build section.
Additionally, you should run mvn package. By specifying the cobertura
plugin in the pom
imagine that the Cobertura plugin works the same
(despite the fact that its docs don't say this).
..David..
-Original Message-
From: Wayne Fay [mailto:[EMAIL PROTECTED]
Sent: Sunday, March 25, 2007 10:15 PM
To: Maven Users List
Subject: Re: How can i run clover and cobertura permanantly
Hi,
How can I run test code coverage tools as part of my build? What
changes do i need to make in the pom.xml?
I ran mvn cobertura:cobertura and seems like it is generating the reports.
Please advise.
Thanks.
B.
-
To
Hi,
On Mar 25, 2007, at 11:47 PM, Baz wrote:
Hi,
How can I run test code coverage tools as part of my build? What
changes do i need to make in the pom.xml?
I ran mvn cobertura:cobertura and seems like it is generating the
reports.
Please advise.
You can check the plugin documentation
Vincent,
Thank you for your reply. I looked through the page, got some idea in
including new plugin. However, I will need to know the correct
groupId, artifactId right? Cobertura for m2 seems to be in another
website, http://repo1.maven.org/maven2/cobertura/cobertura/
So my question now is:
As suggested by Vincent, the plugin docs are the place to find the
answers you seek...
http://mojo.codehaus.org/cobertura-maven-plugin/usage.html
http://maven.apache.org/plugins/maven-clover-plugin/usage.html
Wayne
On 3/25/07, Baz [EMAIL PROTECTED] wrote:
Vincent,
Thank you for your reply. I
Fay, Vincent,
Sorry for the repeated questions. I am just new to maven. Yes i am
adding the following lines, then run mvn cobertura:cobertura. Is it
the correct way? Is there a goal that include build, report and
deploy?
The lines added to pom.xml:
reporting
plugins
plugin
No, this is not the correct way.
You need both the node in the reporting section as well as the
instrumentation node in the build section.
Additionally, you should run mvn package. By specifying the
cobertura plugin in the pom, it will automatically run cobertura at
the proper time.
Wayne
On
Fay, sorry if i am being slow...
I see three sections in
http://mojo.codehaus.org/cobertura-maven-plugin/usage.html
1. Do i put section 1, basic cobertura configuration in reporting
section of pom.xml?
2. Section 2, Configuring Instrumentation in build section of pom.xml?
3. Section 3,
It seems like section 2 and 3 can be overlayed right? Meaning adding
check from section 3 to section 2, then put it into build section in
pom.xml?
On 3/25/07, Baz [EMAIL PROTECTED] wrote:
Fay, sorry if i am being slow...
I see three sections in
After I have done that, mvn site, seems invoke cobertura but not
mvn package, am i doing anything wrong?
On 3/25/07, Baz [EMAIL PROTECTED] wrote:
It seems like section 2 and 3 can be overlayed right? Meaning adding
check from section 3 to section 2, then put it into build section in
pom.xml?
I simply misspoke. Cobertura requires site to run so the site is
generated, including the cobertura report.
Wayne
On 3/25/07, Baz [EMAIL PROTECTED] wrote:
After I have done that, mvn site, seems invoke cobertura but not
mvn package, am i doing anything wrong?
On 3/25/07, Baz [EMAIL PROTECTED]
12 matches
Mail list logo