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.
1.
|
Document TestNG Support for Test Optimization |
|
Closed | Unassigned |