Uploaded image for project: 'Clover'
  1. Clover
  2. CLOV-1599

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

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Low
    • 4.0.3
    • 4.0.2
    • Test Optimization
    • 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.

      Attachments

        Activity

          People

            mparfianowicz Marek Parfianowicz
            0f30c17ea152 Mitchell Archibald
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: