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>
<groupId>org.codehaus.mojo</groupId>
<artifactId>cobertura-maven-plugin</artifactId>
</plugin>
</plugins>
</reporting>
Results:
-------------------------------------------------------
T E S T S
-------------------------------------------------------
There are no tests to run.
Results :
Tests run: 0, Failures: 0, Errors: 0, Skipped: 0
[INFO] [cobertura:cobertura]
[INFO] Cobertura 1.8 - GNU GPL License (NO WARRANTY) - See COPYRIGHT file
Cobertura: Loaded information on 1 classes.
Report time: 250ms
[INFO] Cobertura Report generation was successful.
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 12 seconds
[INFO] Finished at: Sun Mar 25 20:59:29 PDT 2007
[INFO] Final Memory: 4M/8M
[INFO] ------------------------------------------------------------------------
On 3/25/07, Wayne Fay <[EMAIL PROTECTED]> wrote:
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 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: What should i put into pom.xml in order to
> download the right bits? How can i find out?
>
> Thanks.
>
> B.
>
> On 3/25/07, Vincent Massol <[EMAIL PROTECTED]> wrote:
> > 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 for example :)
> >
> > http://maven.apache.org/plugins/index.html
> >
> > -Vincent
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]