From: Chris B. <cb...@gm...> - 2005-04-13 03:48:47
|
Hey all, Wonderful job with Cobertura. I'm loving it. I'm about to turn a new test-driven project loose on my fellow developers,= =20 and I want to make sure that coverage stays up where it should be. I'm usin= g=20 cobertura-check as documented and it does print messages when coverage is= =20 lower than the specified threshold, but it doesn't fail the build as=20 expected. Is this a bug? Example: build.xml: <target name=3D"coverage-check"> <cobertura-check branch=3D"90" line=3D"90"> <regex pattern=3D"registry.*" branch=3D"90" line=3D"90" /> </cobertura-check> </target> =20 invocation: cbeams@cbeams:~/work/CobainMigration/registry>$ ant coverage-check Buildfile: build.xml coverage-check: [cobertura-check] Cobertura 1.2 [cobertura-check] Copyright (C) 2003 jcoverage ltd. [cobertura-check] Copyright (C) 2005 Mark Doliner < the...@us...> [cobertura-check] Cobertura is licensed under the GNU General Public Licens= e [cobertura-check] Cobertura comes with ABSOLUTELY NO WARRANTY [cobertura-check] Cobertura coverage check [cobertura-check] registry.Script line coverage rate of: 87.1% (required:= =20 90.0%) BUILD SUCCESSFUL Total time: 2 seconds =20 Again, the expected result would be that the build fails in this situation. Thanks much! - Chris Beams cb...@gm... http://chrisbeams.com/blog |