Hi,
[snip]
Process to run DSpot:
1) Pick a module. Measure coverage and mutation score (or take the value there already if
they’re in the pom.xml). Same as for Descartes testing.
2) Run DSpot on the module, see
https://massol.myxwiki.org/xwiki/bin/view/Blog/TestGenerationDspot for explanations
One important detail that I had missed. We need to run Dspot with “—descartes” on the
command line so that it uses Descartes for computing the mutation score for mutations and
only keep tests that increase the mutation score as reported by Descartes.
3) If DSpot has generated tests, add them to XWiki’s
source code in src/test/dspot and add the following to the pom of that module:
<build>
<plugins>
<!-- Add test source root for executing DSpot-generated tests -->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
</plugin>
</plugins>
</build>
Example:
https://github.com/xwiki/xwiki-commons/tree/244ee07976c691c335b7f54c48e6308…
Note: The generated tests sometimes need to be modified a bit to pass. Personally I’ve
only committed tests that were passing and I reported issues for those that were not
passing.
4) File the various reports:
a)
https://github.com/STAMP-project/dspot-usecases-output/tree/master/xwiki both for
success and failures
b)
https://docs.google.com/spreadsheets/d/1LULpGpsJirmFyvHNstLGv-Gv5DVBdpLTM2h…
c) for failures, file a github issue at
https://github.com/STAMP-project/dspot/issues and
link to the place on
https://github.com/STAMP-project/dspot-usecases-output/tree/master/xwiki where we put the
failing result.
Note: The reason we need to report failures too is because DSpot fails a lot so we need
to show what we have tested
Thanks
-Vincent
[snip]
Thanks
-Vincent