Details
-
Bug
-
Resolution: Fixed
-
Low
-
4.0.2
-
None
-
Clover 4.0.2
Ant 1.8
Java 1.8
TestNG 6.8.7
Description
If I attempt to optimize my TestNG test run in an ant target like so:
build.xml snippet
<testng outputDir="./reports/intTest" failureproperty="testNGFailed" haltonfailure="false" verbose="2" workingDir="${base.dir}" classfilesetref="int.tests" listeners="com.atlassian.clover.ant.tasks.testng.CloverOptimizedTestNGSelector" groups="clover-optimized"> <sysproperty key="clover.test.snapshot" value="i/dont/exist/clover.db.snapshot"/> <sysproperty key="clover.initstring" value=".clover/clover.db"/> <!-- ... --> </testng>
where:
- i/dont/exist/clover.db.snapshot does not exist on the file system.
- .clover/clover.db exists on the file system and is a valid coverage registry,
then Clover will not optimize my test run (reasonable enough, given it cannot find the snapshot), but does not log a message, exit, or otherwise give any indication that it could not find the snapshot file.