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

Support for TestNG test optimization in Ant

    XMLWordPrintable

    Details

    • Type: Suggestion
    • Status: Closed
    • Resolution: Fixed
    • Fix Version/s: 2.4.2
    • Component/s: Ant Tasks
    • Labels:
      None
    • Environment:
      Ant
    • Feedback Policy:

      Our product teams collect and evaluate feedback from a number of different sources. To learn more about how we use customer feedback in the planning process, check out our new feature policy.

      Description

      TestNG test optimization is almost supported.

      It seems the only thing missing, is the ability to specify an alternate snapshot file location, even if this means users are required to set <systemproperty> elements.

      Otherwise - the testng task needs the {{ listeners="com.cenqua.clover.tasks.testng.CloverOptimizedTestSelector"
      }} attribute set.

      <testng
      		    outputdir="${outdir}/${testresultsprefix}"
      		    haltOnFailure="false"
                  verbose="2"
                  listeners="com.cenqua.clover.tasks.testng.CloverOptimizedTestSelector"
                  groups="clover-optimized">
                  <sysproperty key="clover.initstring" value="${clover.initstring}"/>
                  <sysproperty key="clover.snapshot" value="${clover.snapshot}"/>
      
                  <classpath refid="unittestpath"/>
                  <classpath>
                      <pathelement location="${outdir}/classes"/>
                  </classpath>
                  
                  <classfileset dir="${outdir}/classes"/>  
              </testng>
      

      The current means of configuring the CloverOptimizedTestSelector in TestNG is via System properties.

        Attachments

          Activity

            People

            Assignee:
            mstudman Michael Studman (Inactive)
            Reporter:
            npellow Nick
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: