-
Bug
-
Resolution: Not A Defect
-
Major
-
None
-
Linux 2.6.32-24-generic #43-Ubuntu SMP Thu Sep 16 14:58:24 UTC 2010 x86_64 GNU/Linux
Basically a chicken and egg problem. Hudson runs build in which all tests pass but the clover coverage is not met.
This causes the build as a whole to be considered a failure. But the thing is when the build fails, then Hudson does not publish the clover report, even though clover.db is produced. How can I achieve code coverage if Hudson does not publish the clover report. As Homer Simpson would say DOH!.
An example is shown below:
Tests run: 16, Failures: 0, Errors: 0, Skipped: 0
[HUDSON] Recording test results
[INFO] [clover:check
]
[INFO] Checking for coverage of [80%] for database [/var/lib/hudson/jobs/sal-utils/workspace/sal-utils/build/maven/sal-utils/target/clover/clover.db]
Loaded results from 1 coverage recording.
[ERROR] Total coverage of 44.9% did not meet target of 80%
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Build failed to meet Clover coverage targets
[INFO] Publishing Clover coverage report...
No Clover report will be published due to a Build Failure