2012-05-02 12:49:31 +00:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
2011-04-27 10:05:43 +00:00
|
|
|
<TestCase name="tst_Cmptest">
|
|
|
|
<Environment>
|
|
|
|
<QtVersion>@INSERT_QT_VERSION_HERE@</QtVersion>
|
Use new QLibraryInfo::build() in testlib to log build information.
This produces:
********* Start testing of tst_QtJson *********
Config: Using QtTest library 5.3.0, Qt 5.3.0 (Feb 13 2014, GCC 4.6.3, 64 bit, debug build)
PASS : tst_QtJson::initTestCase()
<?xml version="1.0" encoding="UTF-8"?>
<TestCase name="tst_QtJson">
<Environment>
<QtVersion>5.3.0</QtVersion>
<QtBuild>Qt 5.3.0 (Feb 13 2014, GCC 4.6.3, 64 bit, debug build)</QtBuild>
<QTestVersion>5.3.0</QTestVersion>
</Environment>
<?xml version="1.0" encoding="UTF-8" ?>
<testsuite errors="1" failures="1" tests="42" name="tst_QtJson">
<properties>
<property value="5.3.0" name="QTestVersion"/>
<property value="5.3.0" name="QtVersion"/>
<property value="Qt 5.3.0 (Feb 13 2014, GCC 4.6.3, 64 bit, debug build)" name="QtBuild"/>
</properties>
<Environment>
<QtVersion>5.3.0</QtVersion>
<QtBuild>Qt 5.3.0 (Feb 13 2014, GCC 4.6.3, 64 bit, debug build)</QtBuild>
<QTestVersion>5.3.0</QTestVersion>
</Environment>
[ChangeLog][QtTest] Tests now output build information.
Change-Id: I0ab473371575f2b807db725256805b8bffea3454
Reviewed-by: Sergio Ahumada <sahumada@blackberry.com>
Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@digia.com>
2014-02-26 16:12:45 +00:00
|
|
|
<QtBuild/>
|
2011-04-27 10:05:43 +00:00
|
|
|
<QTestVersion>@INSERT_QT_VERSION_HERE@</QTestVersion>
|
|
|
|
</Environment>
|
|
|
|
<TestFunction name="initTestCase">
|
|
|
|
<Incident type="pass" file="" line="0" />
|
2015-06-08 10:21:30 +00:00
|
|
|
<Duration msecs="0"/>
|
|
|
|
</TestFunction>
|
|
|
|
<TestFunction name="compare_unregistered_enums">
|
2017-10-03 08:10:46 +00:00
|
|
|
<Incident type="fail" file="qtbase/tests/auto/testlib/selftests/cmptest/tst_cmptest.cpp" line="0">
|
2015-06-08 10:21:30 +00:00
|
|
|
<Description><![CDATA[Compared values are not the same]]></Description>
|
|
|
|
</Incident>
|
|
|
|
<Duration msecs="0"/>
|
|
|
|
</TestFunction>
|
|
|
|
<TestFunction name="compare_registered_enums">
|
2017-10-03 08:10:46 +00:00
|
|
|
<Incident type="fail" file="qtbase/tests/auto/testlib/selftests/cmptest/tst_cmptest.cpp" line="0">
|
2015-06-08 10:21:30 +00:00
|
|
|
<Description><![CDATA[Compared values are not the same
|
2015-12-02 01:44:34 +00:00
|
|
|
Actual (Qt::Monday): Monday
|
|
|
|
Expected (Qt::Sunday): Sunday]]></Description>
|
2015-06-08 10:21:30 +00:00
|
|
|
</Incident>
|
|
|
|
<Duration msecs="0"/>
|
2011-04-27 10:05:43 +00:00
|
|
|
</TestFunction>
|
2015-11-01 15:41:25 +00:00
|
|
|
<TestFunction name="compare_class_enums">
|
2017-10-03 08:10:46 +00:00
|
|
|
<Incident type="fail" file="qtbase/tests/auto/testlib/selftests/cmptest/tst_cmptest.cpp" line="0">
|
2015-11-01 15:41:25 +00:00
|
|
|
<Description><![CDATA[Compared values are not the same
|
|
|
|
Actual (MyClassEnum::MyClassEnumValue1): MyClassEnumValue1
|
|
|
|
Expected (MyClassEnum::MyClassEnumValue2): MyClassEnumValue2]]></Description>
|
|
|
|
</Incident>
|
|
|
|
<Duration msecs="0"/>
|
|
|
|
</TestFunction>
|
2018-01-18 16:10:03 +00:00
|
|
|
<TestFunction name="test_windowflags">
|
|
|
|
<Incident type="pass" file="" line="0">
|
|
|
|
<DataTag><![CDATA[pass]]></DataTag>
|
|
|
|
</Incident>
|
|
|
|
<Incident type="fail" file="qtbase/tests/auto/testlib/selftests/cmptest/tst_cmptest.cpp" line="0">
|
|
|
|
<DataTag><![CDATA[fail1]]></DataTag>
|
|
|
|
<Description><![CDATA[Compared values are not the same
|
|
|
|
Actual (actualWindowFlags) : Window|WindowSystemMenuHint|WindowStaysOnBottomHint
|
|
|
|
Expected (expectedWindowFlags): Window|FramelessWindowHint|WindowSystemMenuHint|WindowStaysOnBottomHint]]></Description>
|
|
|
|
</Incident>
|
|
|
|
<Incident type="fail" file="qtbase/tests/auto/testlib/selftests/cmptest/tst_cmptest.cpp" line="0">
|
|
|
|
<DataTag><![CDATA[fail2]]></DataTag>
|
|
|
|
<Description><![CDATA[Compared values are not the same
|
|
|
|
Actual (actualWindowFlags) : Window
|
|
|
|
Expected (expectedWindowFlags): Window|FramelessWindowHint]]></Description>
|
|
|
|
</Incident>
|
|
|
|
<Duration msecs="0"/>
|
|
|
|
</TestFunction>
|
|
|
|
<TestFunction name="test_unregistered_flags">
|
|
|
|
<Incident type="pass" file="" line="0">
|
|
|
|
<DataTag><![CDATA[pass]]></DataTag>
|
|
|
|
</Incident>
|
|
|
|
<Incident type="fail" file="qtbase/tests/auto/testlib/selftests/cmptest/tst_cmptest.cpp" line="0">
|
|
|
|
<DataTag><![CDATA[fail1]]></DataTag>
|
|
|
|
<Description><![CDATA[Compared values are not the same
|
|
|
|
Actual (actualFlags) : 0x3
|
|
|
|
Expected (expectedFlags): 0x5]]></Description>
|
|
|
|
</Incident>
|
|
|
|
<Incident type="fail" file="qtbase/tests/auto/testlib/selftests/cmptest/tst_cmptest.cpp" line="0">
|
|
|
|
<DataTag><![CDATA[fail2]]></DataTag>
|
|
|
|
<Description><![CDATA[Compared values are not the same
|
|
|
|
Actual (actualFlags) : 0x1
|
|
|
|
Expected (expectedFlags): 0x5]]></Description>
|
|
|
|
</Incident>
|
|
|
|
<Duration msecs="0"/>
|
|
|
|
</TestFunction>
|
2011-04-27 10:05:43 +00:00
|
|
|
<TestFunction name="compare_boolfuncs">
|
|
|
|
<Incident type="pass" file="" line="0" />
|
2015-06-08 10:21:30 +00:00
|
|
|
<Duration msecs="0"/>
|
2011-04-27 10:05:43 +00:00
|
|
|
</TestFunction>
|
2016-02-22 19:29:32 +00:00
|
|
|
<TestFunction name="compare_to_nullptr">
|
|
|
|
<Incident type="pass" file="" line="0" />
|
|
|
|
<Duration msecs="0"/>
|
|
|
|
</TestFunction>
|
2011-04-27 10:05:43 +00:00
|
|
|
<TestFunction name="compare_pointerfuncs">
|
|
|
|
<Incident type="pass" file="" line="0" />
|
2015-06-08 10:21:30 +00:00
|
|
|
<Duration msecs="0"/>
|
2011-04-27 10:05:43 +00:00
|
|
|
</TestFunction>
|
|
|
|
<TestFunction name="compare_tostring">
|
2017-10-03 08:10:46 +00:00
|
|
|
<Incident type="fail" file="qtbase/tests/auto/testlib/selftests/cmptest/tst_cmptest.cpp" line="0">
|
2011-04-27 10:05:43 +00:00
|
|
|
<DataTag><![CDATA[int, string]]></DataTag>
|
|
|
|
<Description><![CDATA[Compared values are not the same
|
2013-07-01 22:58:40 +00:00
|
|
|
Actual (actual) : QVariant(int,123)
|
2011-04-27 10:05:43 +00:00
|
|
|
Expected (expected): QVariant(QString,hi)]]></Description>
|
|
|
|
</Incident>
|
testlib: Count passes, fails and skips consistently.
For data-driven tests, testlib previously counted one fail or skip for
each data row that failed or skipped, while it counted only one pass
for a test function where all rows passed and counted no passes for a
test function where some rows passed and some rows failed. A similar
problem also existed for benchmark tests, which could run multiple
iterations of the same test, with each fail and skip being counted but
only a single pass being counted for the entire series of iterations.
This commit makes testlib count one pass, fail or skip for each data
row. Test functions that are not data-driven count one result for the
test function, as before. Benchmark tests count one pass, fail or skip
per iteration.
A side-effect of this change is that the test output in plain text, xml
and light xml formats now shows a result for every data row and
benchmark iteration executed, allowing post-processors to correctly
calculate the total number of tests executed. Previously, individual
rows were not shown in the test output if they passed, making such
calculations impossible.
The only change to the xunitxml output format is to correct a bug where
no test result was recorded for a test function if the last data row
was skipped and all other rows passed -- in which case the overall
result should be a pass. Note that there is also a pre-existing bug
in the xunit logger, where no result is reported if all rows are
skipped; that bug is unaffected by this commit.
Task-number: QTBUG-21848
Task-number: QTBUG-22124
Change-Id: I7e17177e10d6e89e55b9684c159bd506f21d002b
Reviewed-by: Ed Baak <ed.baak@nokia.com>
2012-02-02 07:08:44 +00:00
|
|
|
<Incident type="pass" file="" line="0">
|
|
|
|
<DataTag><![CDATA[both invalid]]></DataTag>
|
|
|
|
</Incident>
|
2017-10-03 08:10:46 +00:00
|
|
|
<Incident type="fail" file="qtbase/tests/auto/testlib/selftests/cmptest/tst_cmptest.cpp" line="0">
|
2011-04-27 10:05:43 +00:00
|
|
|
<DataTag><![CDATA[null hash, invalid]]></DataTag>
|
|
|
|
<Description><![CDATA[Compared values are not the same
|
2013-07-01 22:58:40 +00:00
|
|
|
Actual (actual) : QVariant(QVariantHash)
|
2011-04-27 10:05:43 +00:00
|
|
|
Expected (expected): QVariant()]]></Description>
|
|
|
|
</Incident>
|
2017-10-03 08:10:46 +00:00
|
|
|
<Incident type="fail" file="qtbase/tests/auto/testlib/selftests/cmptest/tst_cmptest.cpp" line="0">
|
2011-04-27 10:05:43 +00:00
|
|
|
<DataTag><![CDATA[string, null user type]]></DataTag>
|
|
|
|
<Description><![CDATA[Compared values are not the same
|
2013-07-01 22:58:40 +00:00
|
|
|
Actual (actual) : QVariant(QString,A simple string)
|
2011-04-27 10:05:43 +00:00
|
|
|
Expected (expected): QVariant(PhonyClass)]]></Description>
|
|
|
|
</Incident>
|
2017-10-03 08:10:46 +00:00
|
|
|
<Incident type="fail" file="qtbase/tests/auto/testlib/selftests/cmptest/tst_cmptest.cpp" line="0">
|
2011-04-27 10:05:43 +00:00
|
|
|
<DataTag><![CDATA[both non-null user type]]></DataTag>
|
|
|
|
<Description><![CDATA[Compared values are not the same
|
2013-07-01 22:58:40 +00:00
|
|
|
Actual (actual) : QVariant(PhonyClass,<value not representable as string>)
|
2011-04-27 10:05:43 +00:00
|
|
|
Expected (expected): QVariant(PhonyClass,<value not representable as string>)]]></Description>
|
|
|
|
</Incident>
|
2015-06-08 10:21:30 +00:00
|
|
|
<Duration msecs="0"/>
|
2011-04-27 10:05:43 +00:00
|
|
|
</TestFunction>
|
2011-12-13 07:26:36 +00:00
|
|
|
<TestFunction name="compareQStringLists">
|
testlib: Count passes, fails and skips consistently.
For data-driven tests, testlib previously counted one fail or skip for
each data row that failed or skipped, while it counted only one pass
for a test function where all rows passed and counted no passes for a
test function where some rows passed and some rows failed. A similar
problem also existed for benchmark tests, which could run multiple
iterations of the same test, with each fail and skip being counted but
only a single pass being counted for the entire series of iterations.
This commit makes testlib count one pass, fail or skip for each data
row. Test functions that are not data-driven count one result for the
test function, as before. Benchmark tests count one pass, fail or skip
per iteration.
A side-effect of this change is that the test output in plain text, xml
and light xml formats now shows a result for every data row and
benchmark iteration executed, allowing post-processors to correctly
calculate the total number of tests executed. Previously, individual
rows were not shown in the test output if they passed, making such
calculations impossible.
The only change to the xunitxml output format is to correct a bug where
no test result was recorded for a test function if the last data row
was skipped and all other rows passed -- in which case the overall
result should be a pass. Note that there is also a pre-existing bug
in the xunit logger, where no result is reported if all rows are
skipped; that bug is unaffected by this commit.
Task-number: QTBUG-21848
Task-number: QTBUG-22124
Change-Id: I7e17177e10d6e89e55b9684c159bd506f21d002b
Reviewed-by: Ed Baak <ed.baak@nokia.com>
2012-02-02 07:08:44 +00:00
|
|
|
<Incident type="pass" file="" line="0">
|
|
|
|
<DataTag><![CDATA[empty lists]]></DataTag>
|
|
|
|
</Incident>
|
|
|
|
<Incident type="pass" file="" line="0">
|
|
|
|
<DataTag><![CDATA[equal lists]]></DataTag>
|
|
|
|
</Incident>
|
2017-10-03 08:10:46 +00:00
|
|
|
<Incident type="fail" file="qtbase/tests/auto/testlib/selftests/cmptest/tst_cmptest.cpp" line="0">
|
2011-12-13 08:02:46 +00:00
|
|
|
<DataTag><![CDATA[last item different]]></DataTag>
|
2013-01-19 10:52:03 +00:00
|
|
|
<Description><![CDATA[Compared lists differ at index 2.
|
2014-01-21 00:03:30 +00:00
|
|
|
Actual (opA): "string3"
|
|
|
|
Expected (opB): "DIFFERS"]]></Description>
|
2011-12-13 07:26:36 +00:00
|
|
|
</Incident>
|
2017-10-03 08:10:46 +00:00
|
|
|
<Incident type="fail" file="qtbase/tests/auto/testlib/selftests/cmptest/tst_cmptest.cpp" line="0">
|
2011-12-13 08:02:46 +00:00
|
|
|
<DataTag><![CDATA[second-last item different]]></DataTag>
|
2013-01-19 10:52:03 +00:00
|
|
|
<Description><![CDATA[Compared lists differ at index 2.
|
2014-01-21 00:03:30 +00:00
|
|
|
Actual (opA): "string3"
|
|
|
|
Expected (opB): "DIFFERS"]]></Description>
|
2011-12-13 07:26:36 +00:00
|
|
|
</Incident>
|
2017-10-03 08:10:46 +00:00
|
|
|
<Incident type="fail" file="qtbase/tests/auto/testlib/selftests/cmptest/tst_cmptest.cpp" line="0">
|
2011-12-13 08:02:46 +00:00
|
|
|
<DataTag><![CDATA[prefix]]></DataTag>
|
2013-01-19 10:52:03 +00:00
|
|
|
<Description><![CDATA[Compared lists have different sizes.
|
2014-01-21 00:03:30 +00:00
|
|
|
Actual (opA) size: 2
|
|
|
|
Expected (opB) size: 1]]></Description>
|
2011-12-13 07:26:36 +00:00
|
|
|
</Incident>
|
2017-10-03 08:10:46 +00:00
|
|
|
<Incident type="fail" file="qtbase/tests/auto/testlib/selftests/cmptest/tst_cmptest.cpp" line="0">
|
2011-12-13 08:02:46 +00:00
|
|
|
<DataTag><![CDATA[short list second]]></DataTag>
|
2013-01-19 10:52:03 +00:00
|
|
|
<Description><![CDATA[Compared lists have different sizes.
|
2014-01-21 00:03:30 +00:00
|
|
|
Actual (opA) size: 12
|
|
|
|
Expected (opB) size: 1]]></Description>
|
2011-12-13 07:26:36 +00:00
|
|
|
</Incident>
|
2017-10-03 08:10:46 +00:00
|
|
|
<Incident type="fail" file="qtbase/tests/auto/testlib/selftests/cmptest/tst_cmptest.cpp" line="0">
|
2011-12-13 08:02:46 +00:00
|
|
|
<DataTag><![CDATA[short list first]]></DataTag>
|
2013-01-19 10:52:03 +00:00
|
|
|
<Description><![CDATA[Compared lists have different sizes.
|
2014-01-21 00:03:30 +00:00
|
|
|
Actual (opA) size: 1
|
|
|
|
Expected (opB) size: 12]]></Description>
|
2011-12-13 07:26:36 +00:00
|
|
|
</Incident>
|
2015-06-08 10:21:30 +00:00
|
|
|
<Duration msecs="0"/>
|
2011-12-13 07:26:36 +00:00
|
|
|
</TestFunction>
|
2013-01-19 10:52:03 +00:00
|
|
|
<TestFunction name="compareQListInt">
|
2017-10-03 08:10:46 +00:00
|
|
|
<Incident type="fail" file="qtbase/tests/auto/testlib/selftests/cmptest/tst_cmptest.cpp" line="0">
|
2013-01-19 10:52:03 +00:00
|
|
|
<Description><![CDATA[Compared lists differ at index 2.
|
2014-01-21 00:03:30 +00:00
|
|
|
Actual (int1): 3
|
|
|
|
Expected (int2): 4]]></Description>
|
2013-01-19 10:52:03 +00:00
|
|
|
</Incident>
|
2015-06-08 10:21:30 +00:00
|
|
|
<Duration msecs="0"/>
|
2013-01-19 10:52:03 +00:00
|
|
|
</TestFunction>
|
|
|
|
<TestFunction name="compareQListDouble">
|
2017-10-03 08:10:46 +00:00
|
|
|
<Incident type="fail" file="qtbase/tests/auto/testlib/selftests/cmptest/tst_cmptest.cpp" line="0">
|
2013-01-19 10:52:03 +00:00
|
|
|
<Description><![CDATA[Compared lists differ at index 0.
|
2014-01-21 00:03:30 +00:00
|
|
|
Actual (double1): 1.5
|
|
|
|
Expected (double2): 1]]></Description>
|
2013-01-19 10:52:03 +00:00
|
|
|
</Incident>
|
2015-06-08 10:21:30 +00:00
|
|
|
<Duration msecs="0"/>
|
2013-01-19 10:52:03 +00:00
|
|
|
</TestFunction>
|
2016-03-17 09:01:55 +00:00
|
|
|
<TestFunction name="compareQColor">
|
2017-10-03 08:10:46 +00:00
|
|
|
<Incident type="pass" file="" line="0">
|
|
|
|
<DataTag><![CDATA[Qt::yellow vs "yellow"]]></DataTag>
|
|
|
|
</Incident>
|
|
|
|
<Incident type="fail" file="qtbase/tests/auto/testlib/selftests/cmptest/tst_cmptest.cpp" line="0">
|
|
|
|
<DataTag><![CDATA[Qt::yellow vs Qt::green]]></DataTag>
|
|
|
|
<Description><![CDATA[Compared values are not the same
|
|
|
|
Actual (colorA): #ffffff00
|
|
|
|
Expected (colorB): #ff00ff00]]></Description>
|
|
|
|
</Incident>
|
|
|
|
<Incident type="fail" file="qtbase/tests/auto/testlib/selftests/cmptest/tst_cmptest.cpp" line="0">
|
|
|
|
<DataTag><![CDATA[0x88ff0000 vs 0xffff0000]]></DataTag>
|
2016-03-17 09:01:55 +00:00
|
|
|
<Description><![CDATA[Compared values are not the same
|
2017-10-03 08:10:46 +00:00
|
|
|
Actual (colorA): #88ff0000
|
|
|
|
Expected (colorB): #ffff0000]]></Description>
|
2016-03-17 09:01:55 +00:00
|
|
|
</Incident>
|
|
|
|
<Duration msecs="0"/>
|
|
|
|
</TestFunction>
|
2011-12-19 10:33:07 +00:00
|
|
|
<TestFunction name="compareQPixmaps">
|
testlib: Count passes, fails and skips consistently.
For data-driven tests, testlib previously counted one fail or skip for
each data row that failed or skipped, while it counted only one pass
for a test function where all rows passed and counted no passes for a
test function where some rows passed and some rows failed. A similar
problem also existed for benchmark tests, which could run multiple
iterations of the same test, with each fail and skip being counted but
only a single pass being counted for the entire series of iterations.
This commit makes testlib count one pass, fail or skip for each data
row. Test functions that are not data-driven count one result for the
test function, as before. Benchmark tests count one pass, fail or skip
per iteration.
A side-effect of this change is that the test output in plain text, xml
and light xml formats now shows a result for every data row and
benchmark iteration executed, allowing post-processors to correctly
calculate the total number of tests executed. Previously, individual
rows were not shown in the test output if they passed, making such
calculations impossible.
The only change to the xunitxml output format is to correct a bug where
no test result was recorded for a test function if the last data row
was skipped and all other rows passed -- in which case the overall
result should be a pass. Note that there is also a pre-existing bug
in the xunit logger, where no result is reported if all rows are
skipped; that bug is unaffected by this commit.
Task-number: QTBUG-21848
Task-number: QTBUG-22124
Change-Id: I7e17177e10d6e89e55b9684c159bd506f21d002b
Reviewed-by: Ed Baak <ed.baak@nokia.com>
2012-02-02 07:08:44 +00:00
|
|
|
<Incident type="pass" file="" line="0">
|
|
|
|
<DataTag><![CDATA[both null]]></DataTag>
|
|
|
|
</Incident>
|
2017-10-03 08:10:46 +00:00
|
|
|
<Incident type="fail" file="qtbase/tests/auto/testlib/selftests/cmptest/tst_cmptest.cpp" line="0">
|
2011-12-19 10:33:07 +00:00
|
|
|
<DataTag><![CDATA[one null]]></DataTag>
|
|
|
|
<Description><![CDATA[Compared QPixmaps differ.
|
2012-03-08 01:30:10 +00:00
|
|
|
Actual (opA).isNull(): 1
|
2011-12-19 10:33:07 +00:00
|
|
|
Expected (opB).isNull(): 0]]></Description>
|
|
|
|
</Incident>
|
2017-10-03 08:10:46 +00:00
|
|
|
<Incident type="fail" file="qtbase/tests/auto/testlib/selftests/cmptest/tst_cmptest.cpp" line="0">
|
2011-12-19 10:33:07 +00:00
|
|
|
<DataTag><![CDATA[other null]]></DataTag>
|
|
|
|
<Description><![CDATA[Compared QPixmaps differ.
|
2012-03-08 01:30:10 +00:00
|
|
|
Actual (opA).isNull(): 0
|
2011-12-19 10:33:07 +00:00
|
|
|
Expected (opB).isNull(): 1]]></Description>
|
|
|
|
</Incident>
|
testlib: Count passes, fails and skips consistently.
For data-driven tests, testlib previously counted one fail or skip for
each data row that failed or skipped, while it counted only one pass
for a test function where all rows passed and counted no passes for a
test function where some rows passed and some rows failed. A similar
problem also existed for benchmark tests, which could run multiple
iterations of the same test, with each fail and skip being counted but
only a single pass being counted for the entire series of iterations.
This commit makes testlib count one pass, fail or skip for each data
row. Test functions that are not data-driven count one result for the
test function, as before. Benchmark tests count one pass, fail or skip
per iteration.
A side-effect of this change is that the test output in plain text, xml
and light xml formats now shows a result for every data row and
benchmark iteration executed, allowing post-processors to correctly
calculate the total number of tests executed. Previously, individual
rows were not shown in the test output if they passed, making such
calculations impossible.
The only change to the xunitxml output format is to correct a bug where
no test result was recorded for a test function if the last data row
was skipped and all other rows passed -- in which case the overall
result should be a pass. Note that there is also a pre-existing bug
in the xunit logger, where no result is reported if all rows are
skipped; that bug is unaffected by this commit.
Task-number: QTBUG-21848
Task-number: QTBUG-22124
Change-Id: I7e17177e10d6e89e55b9684c159bd506f21d002b
Reviewed-by: Ed Baak <ed.baak@nokia.com>
2012-02-02 07:08:44 +00:00
|
|
|
<Incident type="pass" file="" line="0">
|
|
|
|
<DataTag><![CDATA[equal]]></DataTag>
|
|
|
|
</Incident>
|
2017-10-03 08:10:46 +00:00
|
|
|
<Incident type="fail" file="qtbase/tests/auto/testlib/selftests/cmptest/tst_cmptest.cpp" line="0">
|
2011-12-19 10:33:07 +00:00
|
|
|
<DataTag><![CDATA[different size]]></DataTag>
|
|
|
|
<Description><![CDATA[Compared QPixmaps differ in size.
|
2012-03-08 01:30:10 +00:00
|
|
|
Actual (opA): 11x20
|
2011-12-19 10:33:07 +00:00
|
|
|
Expected (opB): 20x20]]></Description>
|
|
|
|
</Incident>
|
2017-10-03 08:10:46 +00:00
|
|
|
<Incident type="fail" file="qtbase/tests/auto/testlib/selftests/cmptest/tst_cmptest.cpp" line="0">
|
2011-12-19 10:33:07 +00:00
|
|
|
<DataTag><![CDATA[different pixels]]></DataTag>
|
|
|
|
<Description><![CDATA[Compared values are not the same]]></Description>
|
|
|
|
</Incident>
|
2015-06-08 10:21:30 +00:00
|
|
|
<Duration msecs="0"/>
|
2011-12-19 10:33:07 +00:00
|
|
|
</TestFunction>
|
|
|
|
<TestFunction name="compareQImages">
|
testlib: Count passes, fails and skips consistently.
For data-driven tests, testlib previously counted one fail or skip for
each data row that failed or skipped, while it counted only one pass
for a test function where all rows passed and counted no passes for a
test function where some rows passed and some rows failed. A similar
problem also existed for benchmark tests, which could run multiple
iterations of the same test, with each fail and skip being counted but
only a single pass being counted for the entire series of iterations.
This commit makes testlib count one pass, fail or skip for each data
row. Test functions that are not data-driven count one result for the
test function, as before. Benchmark tests count one pass, fail or skip
per iteration.
A side-effect of this change is that the test output in plain text, xml
and light xml formats now shows a result for every data row and
benchmark iteration executed, allowing post-processors to correctly
calculate the total number of tests executed. Previously, individual
rows were not shown in the test output if they passed, making such
calculations impossible.
The only change to the xunitxml output format is to correct a bug where
no test result was recorded for a test function if the last data row
was skipped and all other rows passed -- in which case the overall
result should be a pass. Note that there is also a pre-existing bug
in the xunit logger, where no result is reported if all rows are
skipped; that bug is unaffected by this commit.
Task-number: QTBUG-21848
Task-number: QTBUG-22124
Change-Id: I7e17177e10d6e89e55b9684c159bd506f21d002b
Reviewed-by: Ed Baak <ed.baak@nokia.com>
2012-02-02 07:08:44 +00:00
|
|
|
<Incident type="pass" file="" line="0">
|
|
|
|
<DataTag><![CDATA[both null]]></DataTag>
|
|
|
|
</Incident>
|
2017-10-03 08:10:46 +00:00
|
|
|
<Incident type="fail" file="qtbase/tests/auto/testlib/selftests/cmptest/tst_cmptest.cpp" line="0">
|
2011-12-19 10:33:07 +00:00
|
|
|
<DataTag><![CDATA[one null]]></DataTag>
|
|
|
|
<Description><![CDATA[Compared QImages differ.
|
2012-03-08 01:30:10 +00:00
|
|
|
Actual (opA).isNull(): 1
|
2011-12-19 10:33:07 +00:00
|
|
|
Expected (opB).isNull(): 0]]></Description>
|
|
|
|
</Incident>
|
2017-10-03 08:10:46 +00:00
|
|
|
<Incident type="fail" file="qtbase/tests/auto/testlib/selftests/cmptest/tst_cmptest.cpp" line="0">
|
2011-12-19 10:33:07 +00:00
|
|
|
<DataTag><![CDATA[other null]]></DataTag>
|
|
|
|
<Description><![CDATA[Compared QImages differ.
|
2012-03-08 01:30:10 +00:00
|
|
|
Actual (opA).isNull(): 0
|
2011-12-19 10:33:07 +00:00
|
|
|
Expected (opB).isNull(): 1]]></Description>
|
|
|
|
</Incident>
|
testlib: Count passes, fails and skips consistently.
For data-driven tests, testlib previously counted one fail or skip for
each data row that failed or skipped, while it counted only one pass
for a test function where all rows passed and counted no passes for a
test function where some rows passed and some rows failed. A similar
problem also existed for benchmark tests, which could run multiple
iterations of the same test, with each fail and skip being counted but
only a single pass being counted for the entire series of iterations.
This commit makes testlib count one pass, fail or skip for each data
row. Test functions that are not data-driven count one result for the
test function, as before. Benchmark tests count one pass, fail or skip
per iteration.
A side-effect of this change is that the test output in plain text, xml
and light xml formats now shows a result for every data row and
benchmark iteration executed, allowing post-processors to correctly
calculate the total number of tests executed. Previously, individual
rows were not shown in the test output if they passed, making such
calculations impossible.
The only change to the xunitxml output format is to correct a bug where
no test result was recorded for a test function if the last data row
was skipped and all other rows passed -- in which case the overall
result should be a pass. Note that there is also a pre-existing bug
in the xunit logger, where no result is reported if all rows are
skipped; that bug is unaffected by this commit.
Task-number: QTBUG-21848
Task-number: QTBUG-22124
Change-Id: I7e17177e10d6e89e55b9684c159bd506f21d002b
Reviewed-by: Ed Baak <ed.baak@nokia.com>
2012-02-02 07:08:44 +00:00
|
|
|
<Incident type="pass" file="" line="0">
|
|
|
|
<DataTag><![CDATA[equal]]></DataTag>
|
|
|
|
</Incident>
|
2017-10-03 08:10:46 +00:00
|
|
|
<Incident type="fail" file="qtbase/tests/auto/testlib/selftests/cmptest/tst_cmptest.cpp" line="0">
|
2011-12-19 10:33:07 +00:00
|
|
|
<DataTag><![CDATA[different size]]></DataTag>
|
|
|
|
<Description><![CDATA[Compared QImages differ in size.
|
2012-03-08 01:30:10 +00:00
|
|
|
Actual (opA): 11x20
|
2011-12-19 10:33:07 +00:00
|
|
|
Expected (opB): 20x20]]></Description>
|
|
|
|
</Incident>
|
2017-10-03 08:10:46 +00:00
|
|
|
<Incident type="fail" file="qtbase/tests/auto/testlib/selftests/cmptest/tst_cmptest.cpp" line="0">
|
2011-12-19 10:33:07 +00:00
|
|
|
<DataTag><![CDATA[different format]]></DataTag>
|
|
|
|
<Description><![CDATA[Compared QImages differ in format.
|
2012-03-08 01:30:10 +00:00
|
|
|
Actual (opA): 6
|
2011-12-19 10:33:07 +00:00
|
|
|
Expected (opB): 3]]></Description>
|
|
|
|
</Incident>
|
2017-10-03 08:10:46 +00:00
|
|
|
<Incident type="fail" file="qtbase/tests/auto/testlib/selftests/cmptest/tst_cmptest.cpp" line="0">
|
2011-12-19 10:33:07 +00:00
|
|
|
<DataTag><![CDATA[different pixels]]></DataTag>
|
|
|
|
<Description><![CDATA[Compared values are not the same]]></Description>
|
|
|
|
</Incident>
|
2015-06-08 10:21:30 +00:00
|
|
|
<Duration msecs="0"/>
|
2011-12-19 10:33:07 +00:00
|
|
|
</TestFunction>
|
2016-07-05 07:41:15 +00:00
|
|
|
<TestFunction name="compareQRegion">
|
|
|
|
<Incident type="pass" file="" line="0">
|
|
|
|
<DataTag><![CDATA[equal-empty]]></DataTag>
|
|
|
|
</Incident>
|
2017-10-03 08:10:46 +00:00
|
|
|
<Incident type="fail" file="qtbase/tests/auto/testlib/selftests/cmptest/tst_cmptest.cpp" line="0">
|
2016-07-05 07:41:15 +00:00
|
|
|
<DataTag><![CDATA[1-empty]]></DataTag>
|
|
|
|
<Description><![CDATA[Compared values are not the same
|
|
|
|
Actual (rA): QRegion(200x50+10+10)
|
|
|
|
Expected (rB): QRegion(null)]]></Description>
|
|
|
|
</Incident>
|
|
|
|
<Incident type="pass" file="" line="0">
|
|
|
|
<DataTag><![CDATA[equal]]></DataTag>
|
|
|
|
</Incident>
|
2017-10-03 08:10:46 +00:00
|
|
|
<Incident type="fail" file="qtbase/tests/auto/testlib/selftests/cmptest/tst_cmptest.cpp" line="0">
|
2016-07-05 07:41:15 +00:00
|
|
|
<DataTag><![CDATA[different lists]]></DataTag>
|
|
|
|
<Description><![CDATA[Compared values are not the same
|
|
|
|
Actual (rA): QRegion(200x50+10+10)
|
|
|
|
Expected (rB): QRegion(2 rectangles, 50x200+100+200, 200x50+10+10)]]></Description>
|
|
|
|
</Incident>
|
|
|
|
<Duration msecs="0"/>
|
|
|
|
</TestFunction>
|
2017-07-31 12:57:02 +00:00
|
|
|
<TestFunction name="compareQVector2D">
|
2017-10-03 08:10:46 +00:00
|
|
|
<Incident type="fail" file="qtbase/tests/auto/testlib/selftests/cmptest/tst_cmptest.cpp" line="0">
|
2017-07-31 12:57:02 +00:00
|
|
|
<Description><![CDATA[Compared values are not the same
|
|
|
|
Actual (v2a): QVector2D(1, 2)
|
|
|
|
Expected (v2b): QVector2D(1, 3)]]></Description>
|
|
|
|
</Incident>
|
|
|
|
<Duration msecs="0"/>
|
|
|
|
</TestFunction>
|
|
|
|
<TestFunction name="compareQVector3D">
|
2017-10-03 08:10:46 +00:00
|
|
|
<Incident type="fail" file="qtbase/tests/auto/testlib/selftests/cmptest/tst_cmptest.cpp" line="0">
|
2017-07-31 12:57:02 +00:00
|
|
|
<Description><![CDATA[Compared values are not the same
|
|
|
|
Actual (v3a): QVector3D(1, 2, 3)
|
|
|
|
Expected (v3b): QVector3D(1, 3, 3)]]></Description>
|
|
|
|
</Incident>
|
|
|
|
<Duration msecs="0"/>
|
|
|
|
</TestFunction>
|
|
|
|
<TestFunction name="compareQVector4D">
|
2017-10-03 08:10:46 +00:00
|
|
|
<Incident type="fail" file="qtbase/tests/auto/testlib/selftests/cmptest/tst_cmptest.cpp" line="0">
|
2017-07-31 12:57:02 +00:00
|
|
|
<Description><![CDATA[Compared values are not the same
|
|
|
|
Actual (v4a): QVector4D(1, 2, 3, 4)
|
|
|
|
Expected (v4b): QVector4D(1, 3, 3, 4)]]></Description>
|
|
|
|
</Incident>
|
|
|
|
<Duration msecs="0"/>
|
|
|
|
</TestFunction>
|
2015-07-21 08:55:17 +00:00
|
|
|
<TestFunction name="verify">
|
2017-10-03 08:10:46 +00:00
|
|
|
<Incident type="fail" file="qtbase/tests/auto/testlib/selftests/cmptest/tst_cmptest.cpp" line="0">
|
2015-07-21 08:55:17 +00:00
|
|
|
<Description><![CDATA['opaqueFunc() < 2' returned FALSE. ()]]></Description>
|
|
|
|
</Incident>
|
|
|
|
<Duration msecs="0"/>
|
|
|
|
</TestFunction>
|
|
|
|
<TestFunction name="verify2">
|
2017-10-03 08:10:46 +00:00
|
|
|
<Incident type="fail" file="qtbase/tests/auto/testlib/selftests/cmptest/tst_cmptest.cpp" line="0">
|
2015-07-21 08:55:17 +00:00
|
|
|
<Description><![CDATA['opaqueFunc() < 2' returned FALSE. (42)]]></Description>
|
|
|
|
</Incident>
|
|
|
|
<Duration msecs="0"/>
|
|
|
|
</TestFunction>
|
|
|
|
<TestFunction name="tryVerify">
|
2017-10-03 08:10:46 +00:00
|
|
|
<Incident type="fail" file="qtbase/tests/auto/testlib/selftests/cmptest/tst_cmptest.cpp" line="0">
|
2015-07-21 08:55:17 +00:00
|
|
|
<Description><![CDATA['opaqueFunc() < 2' returned FALSE. ()]]></Description>
|
|
|
|
</Incident>
|
|
|
|
<Duration msecs="0"/>
|
|
|
|
</TestFunction>
|
|
|
|
<TestFunction name="tryVerify2">
|
2017-10-03 08:10:46 +00:00
|
|
|
<Incident type="fail" file="qtbase/tests/auto/testlib/selftests/cmptest/tst_cmptest.cpp" line="0">
|
2015-07-21 08:55:17 +00:00
|
|
|
<Description><![CDATA['opaqueFunc() < 2' returned FALSE. (42)]]></Description>
|
|
|
|
</Incident>
|
|
|
|
<Duration msecs="0"/>
|
|
|
|
</TestFunction>
|
2016-05-03 21:04:28 +00:00
|
|
|
<TestFunction name="verifyExplicitOperatorBool">
|
|
|
|
<Incident type="pass" file="" line="0" />
|
|
|
|
<Duration msecs="0"/>
|
|
|
|
</TestFunction>
|
2011-04-27 10:05:43 +00:00
|
|
|
<TestFunction name="cleanupTestCase">
|
|
|
|
<Incident type="pass" file="" line="0" />
|
2015-06-08 10:21:30 +00:00
|
|
|
<Duration msecs="0"/>
|
2011-04-27 10:05:43 +00:00
|
|
|
</TestFunction>
|
2013-10-24 18:10:37 +00:00
|
|
|
<Duration msecs="0"/>
|
2011-04-27 10:05:43 +00:00
|
|
|
</TestCase>
|