You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by mmistroni <mm...@gmail.com> on 2007/10/06 17:26:57 UTC

Re: cobertura

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