27db9e458c
The reporter was probably named 'xunit' based on the historical use of xUnit to refer to testing frameworks derived from Smalltalk's SUnit. These frameworks typically added their own prefix, e.g. JUnit for Java, RUnit for R, etc. The most popular of these was the JUnit framework, and the corresponding XML output produced by the Ant built tool became somewhat of a de facto standard, which is probably why we chose to model our reporter after it. Nowadays however, naming it 'xunit' is problematic as there is actually a testing famework named xUnit.net, typically shortened to, you guessed it: xunit. Test report consumers will typically have a junit mode, and an xunit mode, and the latter could easily be mistaken for what testlib outputs, unless we clarify this. The clarification also allows us to safely extend our support for the JUnit XML format to incorporate some elements that are nowadays common, but where we are lagging behind the standard. [ChangeLog][QTestLib] The formerly named 'xunitxml' test reporter has been renamed to what it actually is: a JUnit test reporter, and is now triggered by passing -o junitxml to the test binary. Change-Id: Ieb20d3d2b5905c74e55b98174948cc70870c0ef9 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
44 lines
2.5 KiB
XML
44 lines
2.5 KiB
XML
<?xml version="1.0" encoding="UTF-8" ?>
|
|
<testsuite errors="9" failures="3" tests="7" name="tst_Silent">
|
|
<properties>
|
|
<property value="@INSERT_QT_VERSION_HERE@" name="QTestVersion"/>
|
|
<property value="@INSERT_QT_VERSION_HERE@" name="QtVersion"/>
|
|
<property value="" name="QtBuild"/>
|
|
</properties>
|
|
<testcase result="pass" name="initTestCase"/>
|
|
<testcase result="pass" name="pass"/>
|
|
<testcase name="skip">
|
|
<!-- message="This test should skip" type="skip" -->
|
|
</testcase>
|
|
<testcase result="fail" name="fail">
|
|
<failure message="'false' returned FALSE. (This test should fail)" result="fail"/>
|
|
</testcase>
|
|
<testcase result="xfail" name="xfail">
|
|
<!-- message="This test should XFAIL" type="info" -->
|
|
</testcase>
|
|
<testcase result="xpass" name="xpass">
|
|
<failure message="'true' returned TRUE unexpectedly. (This test should XPASS)" result="xpass"/>
|
|
</testcase>
|
|
<testcase result="fail" name="messages">
|
|
<!-- message="This is a warning that should not appear in silent test output" type="qwarn" -->
|
|
<!-- message="This is an internal testlib warning that should not appear in silent test output" type="warn" -->
|
|
<!-- message="This is a debug message that should not appear in silent test output" type="qdebug" -->
|
|
<!-- message="This is a critical message that should not appear in silent test output" type="system" -->
|
|
<!-- message="This is an info message that should not appear in silent test output" type="qinfo" -->
|
|
<!-- message="This is an internal testlib info message that should not appear in silent test output" type="info" -->
|
|
<!-- message="This is a fatal error message that should still appear in silent test output" type="qfatal" -->
|
|
<failure message="Received a fatal error." result="fail"/>
|
|
</testcase>
|
|
<system-err>
|
|
<![CDATA[This test should skip]]>
|
|
<![CDATA[This test should XFAIL]]>
|
|
<![CDATA[This is a warning that should not appear in silent test output]]>
|
|
<![CDATA[This is an internal testlib warning that should not appear in silent test output]]>
|
|
<![CDATA[This is a debug message that should not appear in silent test output]]>
|
|
<![CDATA[This is a critical message that should not appear in silent test output]]>
|
|
<![CDATA[This is an info message that should not appear in silent test output]]>
|
|
<![CDATA[This is an internal testlib info message that should not appear in silent test output]]>
|
|
<![CDATA[This is a fatal error message that should still appear in silent test output]]>
|
|
</system-err>
|
|
</testsuite>
|