We are running UI tests and are doing one retry if there is a bug.
When a test fails with an Exception on the first try and the second try is skipped by an assumption violation the resulting test report xml file is not valid (not well formatted xml file).
When the test is skipped on the first try or both runs fail with an exception everything is ok.
This is a testcase which is retried and a valid xml is generated.
Here is a generated invalid xml. The rerunError tag is missing. The retry "error" is an assumption violation so the test should be marked as skipped with message of the assumptionviolation.
I have attached the following files:
- TEST-asdf.SearchTest_assumption_valid.xml (assumption violation in the first test run)
- TEST-asdf.SearchTest_rerun_fail_valid.xml (both runs throw exception)
- TEST-asdf.SearchTest_rerun_assumption_invalid.xml (first run exception - second run assumption violation)