Details
-
Type:
Bug
-
Status: Closed (View Workflow)
-
Priority:
Major
-
Resolution: Fixed
-
Component/s: xunit-plugin
-
Labels:None
-
Environment:ubuntu 10.04, xunit 1.6, boost test 1.40
-
Similar Issues:
Description
Here is an excerpt from a boost test run where an exception occurred:
<Info file="/var/lib/hudson/jobs/ColdAtom/workspace/trunk/grain/test_model.cpp" line="247">check m->field_known() passed</Info>
<Exception>memory access violation at address: 0x00000008: no mapping at fault address<LastCheckpoint file="/var/lib/hudson/jobs/ColdAtom/workspace/trunk/grain/test_model\
.cpp" line="247"/></Exception>
<Message file="./boost/test/impl/unit_test_log.ipp" line="164">Test is aborted</Message>
<TestingTime>2950000</TestingTime>
</TestCase>
</TestSuite>
</TestLog>
Then the hudson log:
[xUnit] [WARNING] - The file '/var/lib/hudson/jobs/ColdAtom/workspace/test_model.xml' is an invalid file.
[xUnit] [WARNING] At line 1 of file:/var/lib/hudson/jobs/ColdAtom/workspace/test_model.xml:cvc-complex-type.2.4.a: Invalid content was found starting with element 'Exception'. One of '
' is expected.
[xUnit] [WARNING] - The file '/var/lib/hudson/jobs/ColdAtom/workspace/test_model.xml' has been ignored.
Boost test also inserts message tags which will fail to parse. This will happen when a unit test has no assertions. It would be nice if these errors would break the build at least. I do have "Fail the build if test results were not updated this run" checked, but it ignores the test and the build succeeds.
The error is due that your input file doesn't match the current expectation.
The boost test results format is provided by an XSD file. This XSD was written for BoostTest 1.35.
I don't know BoostTest 1.40, but maybe there is also the same error in boost test 1.35.
Do you know XSD? If yes, could you fix it and attach the new XSD file at this issue.
Otherwise, could you send me lots of your input boosttest result files in order to enhance the XSD based on your samples?