I know it's been a while, but, there is an element for errors, and you can distinguish between errors and failures:
<?xml version="1.0" encoding="utf-8"?>
<testsuites errors="1" failures="2" tests="5" time="10">
<testsuite errors="1" failures="2" id="0" name="TestSuite1" tests="4" timestamp="2015-04-20T00:00:00">
<testcase classname="ModuleIAmTesting" name="testDoNothingDoesNothing" time="1"/>
<testcase classname="ModuleIAmTesting" name="testLongThingTakesALongTime" time="5"/>
<testcase classname="ModuleIAmTesting" name="testSkyIsBlue" time="1">
<failure message="Test testSkyIsBlue() failed!" type="failure">
It's storming; sky is gray today. Failure output, details, etc.
</failure>
</testcase>
<testcase classname="ModuleIAmTesting" name="testIsNotStorming" time="1">
<failure message="Test testIsNotStorming() failed!" type="failure">
Another failure. Failure output, details, etc.
</failure>
</testcase>
<testcase classname="ModuleIAmTesting" name="testCreatePlugin" time="2">
<error message="Error while executing test testCreatePlugin()!" type="error">
Unhandled catastrophic exception in ModuleIAmTesting.cpp at like 4420, details, etc.
</error>
</testcase>
</testsuite>
</testsuites>
The important part is the <error>
tag and the errors
attribute to <testsuite>
.