qt5base-lts/tests/auto/testlib/selftests/expected_strcmp.junitxml
Tor Arne Vestbø 308280e7a9 testlib: Move stdout/stderr reporting into individual <testcase> elements
The original Ant JUnit reporter only writes <system-err> and <system-out>
to the <testsuite>, but more modern reporters such as Maven Surefire
scopes output to each individual <testcase>.

This is also handled by both the Jenkins JUnit and xUnit plugins, e.g.:

 https://github.com/jenkinsci/junit-plugin/commit/145eb5c98

Pick-to: 6.2
Change-Id: I20c87276004a4e0910fc18e05e6ffa0f5e5a7b7c
Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
2021-08-10 18:06:36 +02:00

50 lines
2.8 KiB
XML

<?xml version="1.0" encoding="UTF-8" ?>
<testsuite name="tst_StrCmp" timestamp="@TEST_START_TIME@" hostname="@HOSTNAME@" tests="8" failures="5" errors="0" skipped="0" time="@TEST_DURATION@">
<properties>
<property name="QTestVersion" value="@INSERT_QT_VERSION_HERE@"/>
<property name="QtVersion" value="@INSERT_QT_VERSION_HERE@"/>
<property name="QtBuild" value=""/>
</properties>
<testcase name="initTestCase" classname="tst_StrCmp" time="@TEST_DURATION@"/>
<testcase name="compareCharStars" classname="tst_StrCmp" time="@TEST_DURATION@"/>
<testcase name="compareByteArray" classname="tst_StrCmp" time="@TEST_DURATION@">
<!-- type="info" message="Next test should fail" -->
<!-- type="info" message="Next test should fail" -->
<!-- type="info" message="Next test should fail" -->
<failure type="fail" message="Compared values are not the same">
<![CDATA[ Actual (a): "BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB"...
Expected (b): "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"...]]>
</failure>
<system-out>
<![CDATA[Next test should fail]]>
<![CDATA[Next test should fail]]>
<![CDATA[Next test should fail]]>
</system-out>
</testcase>
<testcase name="failByteArray" classname="tst_StrCmp" time="@TEST_DURATION@">
<failure type="fail" message="Compared values are not the same">
<![CDATA[ Actual (QByteArray("abc")): "abc"
Expected (QByteArray("cba")): "cba"]]>
</failure>
</testcase>
<testcase name="failByteArrayNull" classname="tst_StrCmp" time="@TEST_DURATION@">
<failure type="fail" message="Compared values are not the same">
<![CDATA[ Actual (QByteArray("foo")): "foo"
Expected (QByteArray()) : ""]]>
</failure>
</testcase>
<testcase name="failByteArrayEmpty" classname="tst_StrCmp" time="@TEST_DURATION@">
<failure type="fail" message="Compared values are not the same">
<![CDATA[ Actual (QByteArray("")) : ""
Expected (QByteArray("foo")): "foo"]]>
</failure>
</testcase>
<testcase name="failByteArraySingleChars" classname="tst_StrCmp" time="@TEST_DURATION@">
<failure type="fail" message="Compared values are not the same">
<![CDATA[ Actual (QByteArray("6")): "6"
Expected (QByteArray("7")): "7"]]>
</failure>
</testcase>
<testcase name="cleanupTestCase" classname="tst_StrCmp" time="@TEST_DURATION@"/>
</testsuite>