Make --rerun-failed generate a complete Test.xml
Currently when using
ctest --rerun-failed the
Test.xml file is being overwritten with only the test which failed before and have been rerun. This behavior doesn't allow reasonable results when integrating CTest in a CI system like Jenkins. When using the option to "ignore" flaky tests the result count reported by Jenkins which parses the
Text.xml files is wrong in the case that CTest was invoked once without and then again with the option. Since the file is being overwritten the previously passing tests are not mentioned in the statistics anymore. Therefore it would be great of a run triggered with
--rerun-failed would only extend the existing
Test.xml result file (eventually toggle this new behavior using a command line option).