2012-01-31 04:07:58 +00:00
|
|
|
<Environment>
|
|
|
|
<QtVersion>@INSERT_QT_VERSION_HERE@</QtVersion>
|
|
|
|
<QTestVersion>@INSERT_QT_VERSION_HERE@</QTestVersion>
|
|
|
|
</Environment>
|
|
|
|
<TestFunction name="initTestCase">
|
|
|
|
<Incident type="pass" file="" line="0" />
|
|
|
|
</TestFunction>
|
|
|
|
<TestFunction name="testPassPass">
|
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[row 1]]></DataTag>
|
|
|
|
</Incident>
|
|
|
|
<Incident type="pass" file="" line="0">
|
|
|
|
<DataTag><![CDATA[row 2]]></DataTag>
|
|
|
|
</Incident>
|
2012-01-31 04:07:58 +00:00
|
|
|
</TestFunction>
|
|
|
|
<TestFunction name="testPassSkip">
|
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[row 1]]></DataTag>
|
|
|
|
</Incident>
|
2014-01-02 13:58:22 +00:00
|
|
|
<Message type="skip" file="tst_counting.cpp" line="118">
|
2012-01-31 04:07:58 +00:00
|
|
|
<DataTag><![CDATA[row 2]]></DataTag>
|
|
|
|
<Description><![CDATA[Skipping]]></Description>
|
|
|
|
</Message>
|
|
|
|
</TestFunction>
|
|
|
|
<TestFunction name="testPassFail">
|
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[row 1]]></DataTag>
|
|
|
|
</Incident>
|
2014-01-02 13:58:22 +00:00
|
|
|
<Incident type="fail" file="tst_counting.cpp" line="115">
|
2012-01-31 04:07:58 +00:00
|
|
|
<DataTag><![CDATA[row 2]]></DataTag>
|
|
|
|
<Description><![CDATA['false' returned FALSE. ()]]></Description>
|
|
|
|
</Incident>
|
|
|
|
</TestFunction>
|
|
|
|
<TestFunction name="testSkipPass">
|
2014-01-02 13:58:22 +00:00
|
|
|
<Message type="skip" file="tst_counting.cpp" line="118">
|
2012-01-31 04:07:58 +00:00
|
|
|
<DataTag><![CDATA[row 1]]></DataTag>
|
|
|
|
<Description><![CDATA[Skipping]]></Description>
|
|
|
|
</Message>
|
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[row 2]]></DataTag>
|
|
|
|
</Incident>
|
2012-01-31 04:07:58 +00:00
|
|
|
</TestFunction>
|
|
|
|
<TestFunction name="testSkipSkip">
|
2014-01-02 13:58:22 +00:00
|
|
|
<Message type="skip" file="tst_counting.cpp" line="118">
|
2012-01-31 04:07:58 +00:00
|
|
|
<DataTag><![CDATA[row 1]]></DataTag>
|
|
|
|
<Description><![CDATA[Skipping]]></Description>
|
|
|
|
</Message>
|
2014-01-02 13:58:22 +00:00
|
|
|
<Message type="skip" file="tst_counting.cpp" line="118">
|
2012-01-31 04:07:58 +00:00
|
|
|
<DataTag><![CDATA[row 2]]></DataTag>
|
|
|
|
<Description><![CDATA[Skipping]]></Description>
|
|
|
|
</Message>
|
|
|
|
</TestFunction>
|
|
|
|
<TestFunction name="testSkipFail">
|
2014-01-02 13:58:22 +00:00
|
|
|
<Message type="skip" file="tst_counting.cpp" line="118">
|
2012-01-31 04:07:58 +00:00
|
|
|
<DataTag><![CDATA[row 1]]></DataTag>
|
|
|
|
<Description><![CDATA[Skipping]]></Description>
|
|
|
|
</Message>
|
2014-01-02 13:58:22 +00:00
|
|
|
<Incident type="fail" file="tst_counting.cpp" line="115">
|
2012-01-31 04:07:58 +00:00
|
|
|
<DataTag><![CDATA[row 2]]></DataTag>
|
|
|
|
<Description><![CDATA['false' returned FALSE. ()]]></Description>
|
|
|
|
</Incident>
|
|
|
|
</TestFunction>
|
|
|
|
<TestFunction name="testFailPass">
|
2014-01-02 13:58:22 +00:00
|
|
|
<Incident type="fail" file="tst_counting.cpp" line="115">
|
2012-01-31 04:07:58 +00:00
|
|
|
<DataTag><![CDATA[row 1]]></DataTag>
|
|
|
|
<Description><![CDATA['false' returned FALSE. ()]]></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[row 2]]></DataTag>
|
|
|
|
</Incident>
|
2012-01-31 04:07:58 +00:00
|
|
|
</TestFunction>
|
|
|
|
<TestFunction name="testFailSkip">
|
2014-01-02 13:58:22 +00:00
|
|
|
<Incident type="fail" file="tst_counting.cpp" line="115">
|
2012-01-31 04:07:58 +00:00
|
|
|
<DataTag><![CDATA[row 1]]></DataTag>
|
|
|
|
<Description><![CDATA['false' returned FALSE. ()]]></Description>
|
|
|
|
</Incident>
|
2014-01-02 13:58:22 +00:00
|
|
|
<Message type="skip" file="tst_counting.cpp" line="118">
|
2012-01-31 04:07:58 +00:00
|
|
|
<DataTag><![CDATA[row 2]]></DataTag>
|
|
|
|
<Description><![CDATA[Skipping]]></Description>
|
|
|
|
</Message>
|
|
|
|
</TestFunction>
|
|
|
|
<TestFunction name="testFailFail">
|
2014-01-02 13:58:22 +00:00
|
|
|
<Incident type="fail" file="tst_counting.cpp" line="115">
|
2012-01-31 04:07:58 +00:00
|
|
|
<DataTag><![CDATA[row 1]]></DataTag>
|
|
|
|
<Description><![CDATA['false' returned FALSE. ()]]></Description>
|
|
|
|
</Incident>
|
2014-01-02 13:58:22 +00:00
|
|
|
<Incident type="fail" file="tst_counting.cpp" line="115">
|
2012-01-31 04:07:58 +00:00
|
|
|
<DataTag><![CDATA[row 2]]></DataTag>
|
|
|
|
<Description><![CDATA['false' returned FALSE. ()]]></Description>
|
|
|
|
</Incident>
|
|
|
|
</TestFunction>
|
2012-02-16 06:00:41 +00:00
|
|
|
<TestFunction name="testFailInInit">
|
|
|
|
<Incident type="pass" file="" line="0">
|
|
|
|
<DataTag><![CDATA[before]]></DataTag>
|
|
|
|
</Incident>
|
2014-01-02 13:58:22 +00:00
|
|
|
<Incident type="fail" file="tst_counting.cpp" line="234">
|
2012-02-16 06:00:41 +00:00
|
|
|
<DataTag><![CDATA[fail]]></DataTag>
|
|
|
|
<Description><![CDATA[Fail in init()]]></Description>
|
|
|
|
</Incident>
|
|
|
|
<Incident type="pass" file="" line="0">
|
|
|
|
<DataTag><![CDATA[after]]></DataTag>
|
|
|
|
</Incident>
|
|
|
|
</TestFunction>
|
|
|
|
<TestFunction name="testFailInCleanup">
|
|
|
|
<Incident type="pass" file="" line="0">
|
|
|
|
<DataTag><![CDATA[before]]></DataTag>
|
|
|
|
</Incident>
|
|
|
|
<Message type="qdebug" file="" line="0">
|
|
|
|
<DataTag><![CDATA[fail]]></DataTag>
|
2013-10-16 13:59:27 +00:00
|
|
|
<Description><![CDATA[This test function should execute and then QFAIL in cleanup()]]></Description>
|
2012-02-16 06:00:41 +00:00
|
|
|
</Message>
|
2014-01-02 13:58:22 +00:00
|
|
|
<Incident type="fail" file="tst_counting.cpp" line="242">
|
2012-02-16 06:00:41 +00:00
|
|
|
<DataTag><![CDATA[fail]]></DataTag>
|
|
|
|
<Description><![CDATA[Fail in cleanup()]]></Description>
|
|
|
|
</Incident>
|
|
|
|
<Incident type="pass" file="" line="0">
|
|
|
|
<DataTag><![CDATA[after]]></DataTag>
|
|
|
|
</Incident>
|
|
|
|
</TestFunction>
|
|
|
|
<TestFunction name="testSkipInInit">
|
|
|
|
<Incident type="pass" file="" line="0">
|
|
|
|
<DataTag><![CDATA[before]]></DataTag>
|
|
|
|
</Incident>
|
2014-01-02 13:58:22 +00:00
|
|
|
<Message type="skip" file="tst_counting.cpp" line="236">
|
2012-02-16 06:00:41 +00:00
|
|
|
<DataTag><![CDATA[skip]]></DataTag>
|
|
|
|
<Description><![CDATA[Skip in init()]]></Description>
|
|
|
|
</Message>
|
|
|
|
<Incident type="pass" file="" line="0">
|
|
|
|
<DataTag><![CDATA[after]]></DataTag>
|
|
|
|
</Incident>
|
|
|
|
</TestFunction>
|
|
|
|
<TestFunction name="testSkipInCleanup">
|
|
|
|
<Incident type="pass" file="" line="0">
|
|
|
|
<DataTag><![CDATA[before]]></DataTag>
|
|
|
|
</Incident>
|
|
|
|
<Message type="qdebug" file="" line="0">
|
|
|
|
<DataTag><![CDATA[skip]]></DataTag>
|
2013-10-16 13:59:27 +00:00
|
|
|
<Description><![CDATA[This test function should execute and then QSKIP in cleanup()]]></Description>
|
2012-02-16 06:00:41 +00:00
|
|
|
</Message>
|
2014-01-02 13:58:22 +00:00
|
|
|
<Message type="skip" file="tst_counting.cpp" line="244">
|
2012-02-16 06:00:41 +00:00
|
|
|
<DataTag><![CDATA[skip]]></DataTag>
|
|
|
|
<Description><![CDATA[Skip in cleanup()]]></Description>
|
|
|
|
</Message>
|
|
|
|
<Incident type="pass" file="" line="0">
|
|
|
|
<DataTag><![CDATA[after]]></DataTag>
|
|
|
|
</Incident>
|
|
|
|
</TestFunction>
|
2012-01-31 04:07:58 +00:00
|
|
|
<TestFunction name="cleanupTestCase">
|
|
|
|
<Incident type="pass" file="" line="0" />
|
|
|
|
</TestFunction>
|