Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[JENKINS-35660] QTestLib time information is lost
Use a converter function in XSLT to convert msec attribute of duration element for QtTest
- Loading branch information
kpop
committed
May 3, 2018
1 parent
9621193
commit 5d79a70
Showing
4 changed files
with
63 additions
and
2 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
19 changes: 19 additions & 0 deletions
19
src/test/resources/org/jenkinsci/plugins/xunit/types/qtestlib/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,19 @@ | ||
<TestCase name="MyTests"> | ||
<Environment> | ||
<QtVersion>5.3.2</QtVersion> | ||
<QTestVersion>5.3.2</QTestVersion> | ||
</Environment> | ||
<TestFunction name="durationInteger"> | ||
<Incident type="pass" file="" line="0" /> | ||
<Duration msecs="1" /> | ||
</TestFunction> | ||
<TestFunction name="durationFloatDot"> | ||
<Incident type="pass" file="" line="0" /> | ||
<Duration msecs="1.567" /> | ||
</TestFunction> | ||
<TestFunction name="durationFloatComma"> | ||
<Incident type="pass" file="" line="0" /> | ||
<Duration msecs="1,567" /> | ||
</TestFunction> | ||
<Duration msecs="4,134" /> | ||
</TestCase> |
12 changes: 12 additions & 0 deletions
12
src/test/resources/org/jenkinsci/plugins/xunit/types/qtestlib/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,12 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<testsuite name="tst_QString" tests="118" failures="0" errors="0" time="0.000"> | ||
<properties> | ||
<property name="QtVersion" value="5.3.2"/> | ||
<property name="QTestVersion" value="5.3.2"/> | ||
</properties> | ||
<testcase classname="MyTests" name="assignQLatin1String" time="1"/> | ||
<testcase classname="MyTests" name="isRightToLeft" time="1.567"/> | ||
<testcase classname="MyTests" name="cleanupTestCase" time="1.567"/> | ||
<system-out/> | ||
<system-err/> | ||
</testsuite> |