Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[JENKINS-42031] xUnit Plugin Does Not Parse Some Boost 1.63 Test Reports
Change the boosttest-1.5.0.xsd validation file to accept some test reports generated by the test framework of Boost 1.63 where these reports may contain a "Message" element as child of a "TestSuite" element.
- Loading branch information
Showing
4 changed files
with
35 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
src/test/resources/org/jenkinsci/plugins/xunit/types/boosttest/testcase19/junit-result.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<testsuite tests="1" errors="1" failures="0" name="MergedTestSuite" skipped="0"> | ||
<testcase classname="TestProject.TestSuite.sources/coreinitialisation" name="test" | ||
time="4.504"> | ||
<error>
[Exception] - | ||
memory access violation | ||
"test0" entry.
 == [File] - testsuite.cpp
 == [Line] - 29
</error> | ||
<system-out>
[Message] - setRandomSeed(2618930540);
 == [File] - sources/coreinitialisation.cpp
 == [Line] - 52

[Message] - Test is aborted
 == [File] - ./boost/test/impl/unit_test_log.ipp
 == [Line] - 198
</system-out> | ||
<system-err>
[Exception] - | ||
memory access violation | ||
"test0" entry.
 == [File] - testsuite.cpp
 == [Line] - 29
</system-err> | ||
</testcase> | ||
</testsuite> |
16 changes: 16 additions & 0 deletions
16
src/test/resources/org/jenkinsci/plugins/xunit/types/boosttest/testcase19/testlog.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<TestLog> | ||
<TestSuite name="TestProject"> | ||
<TestSuite name="TestSuite" file="testsuite.cpp" line="10"> | ||
<TestCase name="test" file="testsuite.cpp" line="29"> | ||
<Message file="sources/coreinitialisation.cpp" line="52"><![CDATA[setRandomSeed(2618930540);]]></Message> | ||
<Exception file="unknown location" line="0"> | ||
<![CDATA[memory access violation]]><LastCheckpoint file="testsuite.cpp" line="29"><![CDATA["test0" entry.]]></LastCheckpoint> | ||
</Exception> | ||
<Message file="./boost/test/impl/unit_test_log.ipp" line="198"><![CDATA[Test is aborted]]></Message> | ||
<TestingTime>4504000</TestingTime> | ||
</TestCase> | ||
<Message file="./boost/test/impl/unit_test_log.ipp" line="198"><![CDATA[Test is aborted]]></Message> | ||
</TestSuite> | ||
<Message file="./boost/test/impl/unit_test_log.ipp" line="198"><![CDATA[Test is aborted]]></Message> | ||
</TestSuite> | ||
</TestLog> |