Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[JENKINS-51798] GoogleTest parse error when time attribute is missing
Fix junit time function when is time attribute is empty
- Loading branch information
Nikolas Falco
committed
Jun 8, 2018
1 parent
2c18ed7
commit 44589f4
Showing
4 changed files
with
28 additions
and
9 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
5 changes: 5 additions & 0 deletions
5
src/test/resources/org/jenkinsci/plugins/xunit/types/googletest/testcase3/input.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,5 @@ | ||
<?xml version="1.0" encoding="UTF-8"?><testsuite name="nosetests" tests="3" errors="0" failures="0" skip="0"><testcase classname="test.test_xxx.TestAlternative" name="test_alternative" time="0.011"><system-out><![CDATA[Test data stripped out. | ||
]]></system-out></testcase><testcase classname="test.test_xxx.TestAlternative" name="test_low" time="0.009"><system-out><![CDATA[Test data stripped out. | ||
]]></system-out></testcase><testcase classname="test.test_xxx.TestAlternative" name="test_high" time="0.010"><system-out><![CDATA[Test data stripped out. | ||
]]></system-out></testcase><testcase classname="test.test_book_gripper_alternative.TestAlternative" name="test_box_length_known_book" time="0.004"><system-out><![CDATA[Test data stripped out. | ||
]]></system-out></testcase></testsuite> |
7 changes: 7 additions & 0 deletions
7
src/test/resources/org/jenkinsci/plugins/xunit/types/googletest/testcase3/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,7 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<testsuite name="nosetests" tests="3" failures="0" errors="0" skipped="0" time="0.000"> | ||
<testcase name="test_alternative" time="0.011" classname="test.test_xxx.TestAlternative" /> | ||
<testcase name="test_low" time="0.009" classname="test.test_xxx.TestAlternative" /> | ||
<testcase name="test_high" time="0.010" classname="test.test_xxx.TestAlternative" /> | ||
<testcase name="test_box_length_known_book" time="0.004" classname="test.test_book_gripper_alternative.TestAlternative" /> | ||
</testsuite> |