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>
52 lines
3.0 KiB
XML
52 lines
3.0 KiB
XML
<?xml version="1.0" encoding="UTF-8" ?>
|
|
<testsuite errors="13" failures="5" tests="6" name="tst_BadXml">
|
|
<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="fail" name="badDataTag">
|
|
<!-- tag="fail end cdata ]]> text ]]> more text" message="a message" type="qdebug" -->
|
|
<failure tag="fail end cdata ]]> text ]]> more text" message="a failure" result="fail"/>
|
|
<!-- tag="pass end cdata ]]> text ]]> more text" message="a message" type="qdebug" -->
|
|
<!-- tag="fail quotes " text" more text" message="a message" type="qdebug" -->
|
|
<failure tag="fail quotes " text" more text" message="a failure" result="fail"/>
|
|
<!-- tag="pass quotes " text" more text" message="a message" type="qdebug" -->
|
|
<!-- tag="fail xml close > open < tags < text" message="a message" type="qdebug" -->
|
|
<failure tag="fail xml close > open < tags < text" message="a failure" result="fail"/>
|
|
<!-- tag="pass xml close > open < tags < text" message="a message" type="qdebug" -->
|
|
<!-- tag="fail all > " mixed ]]> up > " in < the ]]> hopes < of triggering "< ]]> bugs" message="a message" type="qdebug" -->
|
|
<failure tag="fail all > " mixed ]]> up > " in < the ]]> hopes < of triggering "< ]]> bugs" message="a failure" result="fail"/>
|
|
<!-- tag="pass all > " mixed ]]> up > " in < the ]]> hopes < of triggering "< ]]> bugs" message="a message" type="qdebug" -->
|
|
</testcase>
|
|
<testcase result="pass" name="badMessage">
|
|
<!-- tag="string 0" message="end cdata ]]> text ]]> more text" type="qdebug" -->
|
|
<!-- tag="string 1" message="quotes " text" more text" type="qdebug" -->
|
|
<!-- tag="string 2" message="xml close > open < tags < text" type="qdebug" -->
|
|
<!-- tag="string 3" message="all > " mixed ]]> up > " in < the ]]> hopes < of triggering "< ]]> bugs" type="qdebug" -->
|
|
</testcase>
|
|
<testcase result="fail" name="failWithNoFile">
|
|
<failure message="failure message" result="fail"/>
|
|
</testcase>
|
|
<testcase result="pass" name="encoding">
|
|
<!-- message=""Ülrich Ümläut"" type="qdebug" -->
|
|
</testcase>
|
|
<testcase result="pass" name="cleanupTestCase"/>
|
|
<system-err>
|
|
<![CDATA[a message]]>
|
|
<![CDATA[a message]]>
|
|
<![CDATA[a message]]>
|
|
<![CDATA[a message]]>
|
|
<![CDATA[a message]]>
|
|
<![CDATA[a message]]>
|
|
<![CDATA[a message]]>
|
|
<![CDATA[a message]]>
|
|
<![CDATA[end cdata ]]]><![CDATA[]> text ]]]><![CDATA[]> more text]]>
|
|
<![CDATA[quotes " text" more text]]>
|
|
<![CDATA[xml close > open < tags < text]]>
|
|
<![CDATA[all > " mixed ]]]><![CDATA[]> up > " in < the ]]]><![CDATA[]> hopes < of triggering "< ]]]><![CDATA[]> bugs]]>
|
|
<![CDATA["Ülrich Ümläut"]]>
|
|
</system-err>
|
|
</testsuite>
|