Permalink
Please sign in to comment.
Browse files
[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...
Showing
with
63 additions
and 2 deletions.
- +2 −2 src/main/resources/org/jenkinsci/plugins/xunit/types/qtestlib-to-junit-5.xsl
- +30 −0 src/test/java/org/jenkinsci/plugins/xunit/types/QTestlibTypeTest.java
- +19 −0 src/test/resources/org/jenkinsci/plugins/xunit/types/qtestlib/testcase3/input.xml
- +12 −0 src/test/resources/org/jenkinsci/plugins/xunit/types/qtestlib/testcase3/result.xml
@@ -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> |
@@ -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> |
0 comments on commit
5d79a70