diff options
author | Tor Arne Vestbø <tor.arne.vestbo@qt.io> | 2021-08-03 12:50:26 +0200 |
---|---|---|
committer | Tor Arne Vestbø <tor.arne.vestbo@qt.io> | 2021-08-10 18:06:36 +0200 |
commit | 308280e7a9277334c2fd3480c3ddc4971d85b920 (patch) | |
tree | abc98a9ee918b715521c4697dbd5d6072f75b85c /tests/auto/testlib/selftests/expected_verbose1.junitxml | |
parent | f6c7eb5f0f59f183d327b732a088646f972805d7 (diff) |
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>
Diffstat (limited to 'tests/auto/testlib/selftests/expected_verbose1.junitxml')
-rw-r--r-- | tests/auto/testlib/selftests/expected_verbose1.junitxml | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/tests/auto/testlib/selftests/expected_verbose1.junitxml b/tests/auto/testlib/selftests/expected_verbose1.junitxml index 623fe912a2..624d969f3d 100644 --- a/tests/auto/testlib/selftests/expected_verbose1.junitxml +++ b/tests/auto/testlib/selftests/expected_verbose1.junitxml @@ -57,6 +57,9 @@ <testcase name="testFailInCleanup(fail)" classname="tst_Counting" time="@TEST_DURATION@"> <!-- type="qdebug" message="This test function should execute and then QFAIL in cleanup()" --> <failure type="fail" message="Fail in cleanup()"/> + <system-out> + <![CDATA[This test function should execute and then QFAIL in cleanup()]]> + </system-out> </testcase> <testcase name="testFailInCleanup(after)" classname="tst_Counting" time="@TEST_DURATION@"/> <testcase name="testSkipInInit(before)" classname="tst_Counting" time="@TEST_DURATION@"/> @@ -68,12 +71,10 @@ <testcase name="testSkipInCleanup(skip)" classname="tst_Counting" time="@TEST_DURATION@"> <!-- type="qdebug" message="This test function should execute and then QSKIP in cleanup()" --> <skipped message="Skip in cleanup()"/> + <system-out> + <![CDATA[This test function should execute and then QSKIP in cleanup()]]> + </system-out> </testcase> <testcase name="testSkipInCleanup(after)" classname="tst_Counting" time="@TEST_DURATION@"/> <testcase name="cleanupTestCase" classname="tst_Counting" time="@TEST_DURATION@"/> - <system-out> - <![CDATA[This test function should execute and then QFAIL in cleanup()]]> - <![CDATA[This test function should execute and then QSKIP in cleanup()]]> - </system-out> - <system-err/> </testsuite> |