From: Carlos S. <car...@us...> - 2005-07-14 05:46:27
|
carlossg 05/07/13 22:46:14 Modified: cobertura project.xml cobertura/xdocs index.xml Added: cobertura/src/main/net/sf/maven_plugins/cobertura CoberturaExample.java cobertura/src/test/net/sf/maven_plugins/cobertura CoberturaExampleTest.java Log: Added sample reports Revision Changes Path 1.9 +1 -0 maven-plugins/cobertura/project.xml Index: project.xml =================================================================== RCS file: /cvsroot/maven-plugins/maven-plugins/cobertura/project.xml,v retrieving revision 1.8 retrieving revision 1.9 diff -u -r1.8 -r1.9 --- project.xml 12 Jul 2005 21:22:16 -0000 1.8 +++ project.xml 14 Jul 2005 05:46:12 -0000 1.9 @@ -98,6 +98,7 @@ <reports> <report>maven-changelog-plugin</report> <report>maven-changes-plugin</report> + <report>maven-cobertura-plugin</report> <report>maven-developer-activity-plugin</report> <report>maven-faq-plugin</report> <report>maven-file-activity-plugin</report> 1.3 +4 -0 maven-plugins/cobertura/xdocs/index.xml Index: index.xml =================================================================== RCS file: /cvsroot/maven-plugins/maven-plugins/cobertura/xdocs/index.xml,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- index.xml 17 Jun 2005 16:34:52 -0000 1.2 +++ index.xml 14 Jul 2005 05:46:13 -0000 1.3 @@ -29,6 +29,10 @@ It helps you to discover where your source-code lacks in test coverage. </p> <p> + Check a sample of the <a href="cobertura/index.html">coverage report</a> + and the <a href="cobertura/cobertura-check.html">checking report</a>. + </p> + <p> For more information regarding Cobertura check out the <a href="http://cobertura.sourceforge.net/" target="_blank"> project homepage</a>. 1.1 maven-plugins/cobertura/src/main/net/sf/maven_plugins/cobertura/CoberturaExample.java Index: CoberturaExample.java =================================================================== package net.sf.maven_plugins.cobertura; public class CoberturaExample { public void example1(boolean b) { int x = 0; if (b) { x = 1; } else { x = 2; } } public void example2(boolean b) { int x = 0; if (b) { x = 1; } else { x = 2; } } public void example3(boolean b) { int x = 0; if (b) { x = 1; } else { x = 2; } } public void example4(boolean b) { int x = 0; if (b) { x = 1; } else { x = 2; } } public void example5(boolean b) { int x = 0; if (b) { x = 1; } else { x = 2; } } } 1.1 maven-plugins/cobertura/src/test/net/sf/maven_plugins/cobertura/CoberturaExampleTest.java Index: CoberturaExampleTest.java =================================================================== package net.sf.maven_plugins.cobertura; import junit.framework.TestCase; public class CoberturaExampleTest extends TestCase { public void testExample1() { CoberturaExample ce = new CoberturaExample(); ce.example1(true); ce.example1(false); } public void testExample2() { CoberturaExample ce = new CoberturaExample(); ce.example2(true); } } |