I took the sample from support CLV-5048 and changed the buildfiles to use java-files instead of class-files (see below).
Test reordering still doesn't work if I change both source-files, so I assume, that this problem not only relates to *.class patternsets.
I did the following
1) run buildfile (all tests are run)
2) run buildfile (no test is run)
3) change classA + class B
4) run buildfile (all tests are run, no reordering takes place)
---------------------
change call to junit from CLV-5048
----------------------
<junit fork="yes" timeout="300000" maxmemory="500m">
<classpath id="classpath.run.test">
<pathelement path="classes" />
<pathelement path="junitclasses" />
<pathelement path="lib/clover.jar" />
</classpath>
<formatter type="brief" usefile="false" />
<formatter type="xml" />
<batchtest todir="junitresult" failureproperty="testsFailed">
<clover-optimized-testset snapshotfile="clover.snapshot" fullrunevery="100">
<fileset dir="src/junit" includes="**/*Test.java" />
</clover-optimized-testset>
</batchtest>
</junit>
---------------------
I took the sample from support CLV-5048 and changed the buildfiles to use java-files instead of class-files (see below).
Test reordering still doesn't work if I change both source-files, so I assume, that this problem not only relates to *.class patternsets.
I did the following
1) run buildfile (all tests are run)
2) run buildfile (no test is run)
3) change classA + class B
4) run buildfile (all tests are run, no reordering takes place)
---------------------
change call to junit from CLV-5048
----------------------
<junit fork="yes" timeout="300000" maxmemory="500m">
<classpath id="classpath.run.test">
<pathelement path="classes" />
<pathelement path="junitclasses" />
<pathelement path="lib/clover.jar" />
</classpath>
<formatter type="brief" usefile="false" />
<formatter type="xml" />
<batchtest todir="junitresult" failureproperty="testsFailed">
<clover-optimized-testset snapshotfile="clover.snapshot" fullrunevery="100">
<fileset dir="src/junit" includes="**/*Test.java" />
</clover-optimized-testset>
</batchtest>
</junit>
---------------------