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?

On 3/25/07, Baz <[EMAIL PROTECTED]> wrote:
> 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, "Configuring check" in build section of pom.xml?
> 4. Do i run "mvn package" to invoke cobertura? Any other targets?
>
> Thanks. B.
>
> On 3/25/07, Wayne Fay <[EMAIL PROTECTED]> wrote:
> > 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 3/25/07, Baz <[EMAIL PROTECTED]> wrote:
> > > 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]
> > >
> > >
> >
> > ---------------------------------------------------------------------
> > 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]

Reply via email to