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

Support for TestNG test optimization in Ant

    • Icon: Suggestion Suggestion
    • Resolution: Fixed
    • 2.4.2
    • Ant Tasks
    • None
    • Ant
    • 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.

      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.

            [CLOV-373] Support for TestNG test optimization in Ant

            Katherine Yabut made changes -
            Workflow Original: JAC Suggestion Workflow [ 3342360 ] New: JAC Suggestion Workflow 3 [ 3584853 ]
            Status Original: RESOLVED [ 5 ] New: Closed [ 6 ]
            Monique Khairuliana (Inactive) made changes -
            Backlog Order (Obsolete) Original: 3210000003
            Workflow Original: New Clover Workflow [ 897748 ] New: JAC Suggestion Workflow [ 3342360 ]
            Issue Type Original: New Feature [ 2 ] New: Suggestion [ 10000 ]
            Status Original: Closed [ 6 ] New: Resolved [ 5 ]
            Piotr Swiecicki made changes -
            Workflow Original: Clover Workflow [ 895688 ] New: New Clover Workflow [ 897748 ]
            Piotr Swiecicki made changes -
            Workflow Original: reviewflow [ 148102 ] New: Clover Workflow [ 895688 ]
            Marek Parfianowicz made changes -
            Status Original: Resolved [ 5 ] New: Closed [ 6 ]
            Nick made changes -
            Description Original: 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.

            {code}
            <testng
            outputdir="${outdir}/${testresultsprefix}"
            haltOnFailure="false"
                        verbose="2"
                        listeners="com.cenqua.clover.tasks.testng.CloverOptimizedTestSelector"
                        groups="${testng.group}">
                        <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>
            {code}

            The current means of configuring the CloverOptimizedTestSelector in TestNG is via System properties.
            New: 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.

            {code}
            <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>
            {code}

            The current means of configuring the CloverOptimizedTestSelector in TestNG is via System properties.
            Nick made changes -
            Resolution New: Fixed [ 1 ]
            Status Original: Implemented [ 10025 ] New: Resolved [ 5 ]
            Nick made changes -
            Description Original: 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.

            {code}
            <testng
            outputdir="${outdir}/${testresultsprefix}"
            haltOnFailure="false"
                        verbose="2"
                        listeners="com.cenqua.clover.tasks.testng.CloverOptimizedTestSelector"
                        groups="${testng.group}">
                        <sysproperty key="clover.initstring" value="${clover.initstring}"/>
                        <classpath refid="unittestpath"/>
                        <classpath>
                            <pathelement location="${outdir}/classes"/>
                        </classpath>
                        
                        <classfileset dir="${outdir}/classes"/>
                    </testng>
            {code}
            New: 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.

            {code}
            <testng
            outputdir="${outdir}/${testresultsprefix}"
            haltOnFailure="false"
                        verbose="2"
                        listeners="com.cenqua.clover.tasks.testng.CloverOptimizedTestSelector"
                        groups="${testng.group}">
                        <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>
            {code}

            The current means of configuring the CloverOptimizedTestSelector in TestNG is via System properties.
            Nick made changes -
            Status Original: Open [ 1 ] New: Implemented [ 10025 ]
            Nick created issue -

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

                Created:
                Updated:
                Resolved: