Re: [m2] noobie : cobertura problems - not reporting all classes in all packages

2006-11-26 Thread Mark Nicholson
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
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-surefire-plugin/artifactId
configuration
skiptrue/skip  
executions
execution
idsurefire-it/id
phaseintegration-test/
phase
goals
goaltest/goal
/goals
configuration
skipfalse/skip
/configuration
/execution
/executions
/configuration
/plugin
:
  plugin
groupIdorg.codehaus.mojo/groupId
artifactIdcobertura-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 users@maven.apache.org


To
Maven Users List users@maven.apache.org
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\PMIConnectmvn 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\PMIConnectmvn 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 
__

Re: [m2] noobie : cobertura problems - not reporting all classes in all packages

2006-11-24 Thread Adam Hardy

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\PMIConnectmvn 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\PMIConnectmvn 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]



[m2] noobie : cobertura problems - not reporting all classes in all packages

2006-11-22 Thread Mark Nicholson
Hi - I set up the following in pom :

:
build
plugins 
  !-- Cobertura Code Coverage -- 
plugin
groupIdorg.codehaus.mojo/groupId
artifactIdcobertura-maven-plugin/artifactId
executions
  execution
goals
  goalclean/goal
/goals
  /execution
/executions
/plugin
:
:
reporting
plugins
:
  !-- Cobertura Code Coverage -- 
plugin
groupIdorg.codehaus.mojo/groupId
artifactIdcobertura-maven-plugin/artifactId
/plugin 
:

recently however it's only generating the coverage report for only 1 of 
the 50 classes

in the system out I get the following :

C:\jboss\workspace2\PMIConnectmvn cobertura:clean

[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'cobertura'.
[INFO] 
-
[INFO] Building PMIConnect
[INFO]task-segment: [cobertura:clean]
[INFO] 
-
[INFO] [cobertura:clean]
[INFO] 

[INFO] BUILD SUCCESSFUL
[INFO] 

[INFO] Total time: 2 seconds
[INFO] Finished at: Thu Nov 23 16:23:25 EST 2006
[INFO] Final Memory: 2M/6M
[INFO] 


C:\jboss\workspace2\PMIConnectmvn 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
Cobertura: Saved information on 50 classes.
Instrument time: 321ms
[INFO] Instrumentation was successful.
[INFO] 

[INFO] BUILD SUCCESSFUL
[INFO] 

[INFO] Total time: 2 seconds
[INFO] Finished at: Thu Nov 23 16:24:07 EST 2006
[INFO] Final Memory: 2M/6M
[INFO] 



C:\jboss\workspace2\PMIConnectmvn 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.
Cobertura: Saved information on 1 classes.
[INFO] [cobertura:cobertura]
[INFO] Cobertura 1.8 - GNU GPL License (NO WARRANTY) - See COPYRIGHT file
Cobertura: Loaded information on 1 classes.
[cobertura] INFO  [main] 
net.sourceforge.cobertura.reporting.html.HTMLReport - Data file does not 
contain instrumentation information for the file 
com/pmiaus/common/App.java.  Ensure this class was instrumented, and this 
data file contains the instrumentation information.
Report time: 231ms
[INFO] Cobertura Report generation was successful.
[INFO] 

[INFO] BUILD SUCCESSFUL
[INFO] 

[INFO] Total time: 8 seconds
[INFO] Finished at: Thu Nov 23 16:25:00 EST 2006
[INFO] Final Memory: 6M/11M
[INFO] 


oddly the one file reported without instrumentation is the only one 
showing up in the coverage report  and cobertura.ser is generated in the 
target directory

anyone have any suggestions. 



__
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
__