You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Ti...@swisscom.com on 2007/03/21 10:10:46 UTC

cobertura

Anybody knows how to make the cobertura test coberage report generation
work? Right now the site plugin seems to generate the reports with a
wrong cobertura.ser file so that test coverage is always 0 % 
Kind regards
Tilman


Re: cobertura

Posted by mmistroni <mm...@gmail.com>.
Hello,
  found answer on this forum (hope you solved in meantimeO)
FYI here's configuration you need in your pom.xml

<build>
     ....
     <plugin>
     		<groupId>org.codehaus.mojo</groupId>
     		<artifactId>cobertura-maven-plugin</artifactId>
			<configuration>
		        <check>
		            <haltOnFailure>true</haltOnFailure>
		            <totalBranchRate>60</totalBranchRate>
		            <totalLineRate>70</totalLineRate>
		        </check>
		    </configuration>
		    <executions>
	          <execution>
	            <goals>
	              <goal>clean</goal>
	              <goal>check</goal>
	            </goals>
	          </execution>
        	</executions>
      	</plugin>


hth
 marco




Tilman.Rossmy wrote:
> 
> Anybody knows how to make the cobertura test coberage report generation
> work? Right now the site plugin seems to generate the reports with a
> wrong cobertura.ser file so that test coverage is always 0 % 
> Kind regards
> Tilman
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/cobertura-tf3439354s177.html#a13074724
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


RE: cobertura

Posted by Ti...@swisscom.com.
thanks, version 2.0 works...but only on our solaris boxes, on windows I
get the following exception:

[ERROR] Exception in thread "main" java.lang.NullPointerException
        at
net.sourceforge.cobertura.coveragedata.ProjectData.getSourceFiles(Pro
jectData.java:105)
        at
net.sourceforge.cobertura.reporting.html.HTMLReport.generateSourceFil
eList(HTMLReport.java:167)
        at
net.sourceforge.cobertura.reporting.html.HTMLReport.generateSourceFil
eLists(HTMLReport.java:150)
        at
net.sourceforge.cobertura.reporting.html.HTMLReport.<init>(HTMLReport
.java:79)



-----Original Message-----
From: Taavi Sildeberg [mailto:taavi.sildeberg@zero.ee] 
Sent: Wednesday, March 21, 2007 10:36 AM
To: Maven Users List
Subject: Re: cobertura

Try to use version 2.0.
Latest Cobertura plugin has some bugs, that gives to 0% aways.
Taavi

Tilman.Rossmy@swisscom.com wrote:
> Anybody knows how to make the cobertura test coberage report 
> generation work? Right now the site plugin seems to generate the 
> reports with a wrong cobertura.ser file so that test coverage is 
> always 0 % Kind regards Tilman
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: cobertura

Posted by Taavi Sildeberg <ta...@zero.ee>.
Try to use version 2.0.
Latest Cobertura plugin has some bugs, that gives to 0% aways.
Taavi

Tilman.Rossmy@swisscom.com wrote:
> Anybody knows how to make the cobertura test coberage report generation
> work? Right now the site plugin seems to generate the reports with a
> wrong cobertura.ser file so that test coverage is always 0 % 
> Kind regards
> Tilman
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: cobertura

Posted by Mika Göckel <mi...@cybercon.de>.
Hey Tilman,

bist Du jetzt bei swisscom, oder nur als Consultant da?

Grüße, Mika

(Du erinnerst Dich? Ein Freund von Carsten Schmitt-Höppner)

Am 21.03.2007 um 10:10 schrieb <Ti...@swisscom.com>  
<Ti...@swisscom.com>:

> Anybody knows how to make the cobertura test coberage report  
> generation
> work? Right now the site plugin seems to generate the reports with a
> wrong cobertura.ser file so that test coverage is always 0 %
> Kind regards
> Tilman
>

--
Mika Göckel
mika@cybercon.de

Königswinterer Str. 374
53227 Bonn

tel 49 228 22 7776 11
fax 49 228 22 7776 29

skype mika.goeckel
skypeIn +492213008290
sip +49221355338812
mob +491722792771

Cybercon Gesellschaft für neue Medien mbH
Firmensitz: Rathausallee 10, 53737 Sankt Augustin
Registergericht: Amtsgericht Siegburg, HRB 4695
Geschäftsführer: Oliver Runge, Michael Göckel
Umsatzsteuer-ID: DE178714321