No log message generated when clover could not optimize test run due to missing snapshot file

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: Low
    • 4.0.3
    • Affects Version/s: 4.0.2
    • Component/s: Test Optimization
    • None
    • Environment:

      Clover 4.0.2
      Ant 1.8
      Java 1.8
      TestNG 6.8.7

      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.

            Assignee:
            Marek Parfianowicz
            Reporter:
            Mitchell Archibald
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: