I tried the suggestion in
http://docs.codehaus.org/pages/viewpage.action?pageId=62120
as my tests were running twice when using site goal (was going to solve
that next anyway)
and all good now on local machine...
<reporting>
<plugins>
:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<skip>true</skip>
<executions>
<execution>
<id>surefire-it</id>
<phase>integration-test</
phase>
<goals>
<goal>test</goal>
</goals>
<configuration>
<skip>false</skip>
</configuration>
</execution>
</executions>
</configuration>
</plugin>
:
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>cobertura-maven-plugin</
artifactId>
</plugin>
:
I am still confused since it's not working when I site-deploy to my target
site...
Adam Hardy <[EMAIL PROTECTED]>
25/11/2006 05:39 AM
Please respond to
"Maven Users List" <[email protected]>
To
Maven Users List <[email protected]>
cc
Subject
Re: [m2] noobie : cobertura problems - not reporting all classes in all
packages
Hi Mark
did you check whether the instrumentation file actually created that
cobertura.ser where it said it did? If so, before you execute
cobertura:cobertura, move it into the target directory where it is
expected.
There seems to be some sort of mix up within cobertura.
the instrument goal places cobertura.ser into target/generated-classes
the cobertura goal seeks it in target/
Your cobertura config was rudimentary, so I think something else is
conflicting.
Maybe you should post your whole pom.
Adam
Mark Nicholson wrote:
[snip]
> recently however it's only generating the coverage report for only 1 of
> the 50 classes
>
> in the system out I get the following :
[snip]
> C:\jboss\workspace2\PMIConnect>mvn cobertura:instrument
>
> [INFO] Scanning for projects...
> [INFO] Searching repository for plugin with prefix: 'cobertura'.
> [INFO]
>
----------------------------------------------------------------------------
> [INFO] Building PMIConnect
> [INFO] task-segment: [cobertura:instrument]
> [INFO]
>
----------------------------------------------------------------------------
> [INFO] [cobertura:instrument]
> [INFO] Cobertura 1.8 - GNU GPL License (NO WARRANTY) - See COPYRIGHT
file
> Instrumenting 50 files to
> C:\jboss\workspace2\PMIConnect\target\generated-classes\cobertura
[snip]
>
> C:\jboss\workspace2\PMIConnect>mvn cobertura:cobertura
>
> Cobertura: Coverage data file
C:\jboss\workspace2\PMIConnect\cobertura.ser
> either does not exist or is not readable. Creating a new data file.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
______________________________________________________________________
______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
______________________________________________________________________