qt5base-lts/tests/auto/testlib/selftests
Friedemann Kleint ae02188233 QTestlib: Add formatting for QObject * in QCOMPARE
Output object name and class in QCOMPARE(). This should help
to debug flaky QWidget tests that for example check on focusWidget().

[ChangeLog][QtTestLib] QCOMPARE() now reports QObject * values by class and objectName().

Task-number: QTBUG-64446
Change-Id: Ife04e89bba04fc78d077c8f0f07af17a17c9cf8c
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
2021-05-26 11:02:48 +00:00
..
assert Remove .prev_CMakeLists.txt files 2021-01-12 20:59:13 +01:00
badxml Remove .prev_CMakeLists.txt files 2021-01-12 20:59:13 +01:00
benchlibcallgrind Remove .prev_CMakeLists.txt files 2021-01-12 20:59:13 +01:00
benchlibcounting Remove .prev_CMakeLists.txt files 2021-01-12 20:59:13 +01:00
benchlibeventcounter Remove .prev_CMakeLists.txt files 2021-01-12 20:59:13 +01:00
benchliboptions Fix compiler warnings from int/size_t mismatches 2021-04-28 06:48:43 +02:00
benchlibtickcounter Remove .prev_CMakeLists.txt files 2021-01-12 20:59:13 +01:00
benchlibwalltime Remove .prev_CMakeLists.txt files 2021-01-12 20:59:13 +01:00
blacklisted Remove .prev_CMakeLists.txt files 2021-01-12 20:59:13 +01:00
cmptest QTestlib: Add formatting for QObject * in QCOMPARE 2021-05-26 11:02:48 +00:00
commandlinedata Fix compiler warnings from int/size_t mismatches 2021-04-28 06:48:43 +02:00
counting Remove .prev_CMakeLists.txt files 2021-01-12 20:59:13 +01:00
crashes Remove .prev_CMakeLists.txt files 2021-01-12 20:59:13 +01:00
datatable Remove .prev_CMakeLists.txt files 2021-01-12 20:59:13 +01:00
datetime Remove .prev_CMakeLists.txt files 2021-01-12 20:59:13 +01:00
deleteLater Remove .prev_CMakeLists.txt files 2021-01-12 20:59:13 +01:00
deleteLater_noApp Remove .prev_CMakeLists.txt files 2021-01-12 20:59:13 +01:00
differentexec Remove .prev_CMakeLists.txt files 2021-01-12 20:59:13 +01:00
exceptionthrow Remove .prev_CMakeLists.txt files 2021-01-12 20:59:13 +01:00
expectfail Remove .prev_CMakeLists.txt files 2021-01-12 20:59:13 +01:00
failcleanup Remove .prev_CMakeLists.txt files 2021-01-12 20:59:13 +01:00
faildatatype Remove .prev_CMakeLists.txt files 2021-01-12 20:59:13 +01:00
failfetchtype Remove .prev_CMakeLists.txt files 2021-01-12 20:59:13 +01:00
failinit Remove .prev_CMakeLists.txt files 2021-01-12 20:59:13 +01:00
failinitdata Remove .prev_CMakeLists.txt files 2021-01-12 20:59:13 +01:00
fetchbogus Remove .prev_CMakeLists.txt files 2021-01-12 20:59:13 +01:00
findtestdata Remove .prev_CMakeLists.txt files 2021-01-12 20:59:13 +01:00
float Move QEMU emulation detector to QTest 2021-02-13 10:02:51 +02:00
globaldata Remove .prev_CMakeLists.txt files 2021-01-12 20:59:13 +01:00
keyboard Fix testlib/tst_selftests::keyboard on Wayland 2021-03-09 07:42:50 +01:00
longstring Remove .prev_CMakeLists.txt files 2021-01-12 20:59:13 +01:00
maxwarnings Remove .prev_CMakeLists.txt files 2021-01-12 20:59:13 +01:00
mouse Remove .prev_CMakeLists.txt files 2021-01-12 20:59:13 +01:00
multiexec Remove .prev_CMakeLists.txt files 2021-01-12 20:59:13 +01:00
pairdiagnostics Remove .prev_CMakeLists.txt files 2021-01-12 20:59:13 +01:00
pass Remove .prev_CMakeLists.txt files 2021-01-12 20:59:13 +01:00
printdatatags Remove .prev_CMakeLists.txt files 2021-01-12 20:59:13 +01:00
printdatatagswithglobaltags Remove .prev_CMakeLists.txt files 2021-01-12 20:59:13 +01:00
qexecstringlist Remove .prev_CMakeLists.txt files 2021-01-12 20:59:13 +01:00
signaldumper Remove .prev_CMakeLists.txt files 2021-01-12 20:59:13 +01:00
silent Remove .prev_CMakeLists.txt files 2021-01-12 20:59:13 +01:00
singleskip Remove .prev_CMakeLists.txt files 2021-01-12 20:59:13 +01:00
skip Remove .prev_CMakeLists.txt files 2021-01-12 20:59:13 +01:00
skipcleanup Remove .prev_CMakeLists.txt files 2021-01-12 20:59:13 +01:00
skipinit Remove .prev_CMakeLists.txt files 2021-01-12 20:59:13 +01:00
skipinitdata Remove .prev_CMakeLists.txt files 2021-01-12 20:59:13 +01:00
sleep Remove .prev_CMakeLists.txt files 2021-01-12 20:59:13 +01:00
strcmp Remove .prev_CMakeLists.txt files 2021-01-12 20:59:13 +01:00
subtest Remove .prev_CMakeLists.txt files 2021-01-12 20:59:13 +01:00
testlib Remove .prev_CMakeLists.txt files 2021-01-12 20:59:13 +01:00
tuplediagnostics Remove .prev_CMakeLists.txt files 2021-01-12 20:59:13 +01:00
verbose1 Remove .prev_CMakeLists.txt files 2021-01-12 20:59:13 +01:00
verbose2 Remove .prev_CMakeLists.txt files 2021-01-12 20:59:13 +01:00
verifyexceptionthrown Remove .prev_CMakeLists.txt files 2021-01-12 20:59:13 +01:00
warnings Remove .prev_CMakeLists.txt files 2021-01-12 20:59:13 +01:00
watchdog Remove .prev_CMakeLists.txt files 2021-01-12 20:59:13 +01:00
xunit Remove .prev_CMakeLists.txt files 2021-01-12 20:59:13 +01:00
.gitignore Revert "Remove unused overload of QTest::qExec." 2011-12-12 10:43:44 +01:00
CATCH_LICENSE.txt Rewrite Qt Testlib selftest to not rely on Qt Testlib itself 2020-05-11 15:42:28 +02:00
catch_p_p.h Adapt Catch2 to Apple Silicon 2021-03-25 12:06:31 +01:00
catch_p.h Rewrite Qt Testlib selftest to not rely on Qt Testlib itself 2020-05-11 15:42:28 +02:00
catch.cpp Rewrite Qt Testlib selftest to not rely on Qt Testlib itself 2020-05-11 15:42:28 +02:00
CMakeLists.txt Move QEMU emulation detector to QTest 2021-02-13 10:02:51 +02:00
expected_assert.junitxml testlib: Add start time and test duration to JUnit XML 2020-07-24 00:52:01 +02:00
expected_assert.lightxml generate_expected_output.py: update generated expected_* files 2017-10-11 09:59:44 +00:00
expected_assert.tap testlib: Add Test Anything Protocol (TAP) reporter 2018-03-14 14:28:36 +00:00
expected_assert.teamcity generate_expected_output.py: update generated expected_* files 2017-10-11 09:59:44 +00:00
expected_assert.txt generate_expected_output.py: update generated expected_* files 2017-10-11 09:59:44 +00:00
expected_assert.xml generate_expected_output.py: update generated expected_* files 2017-10-11 09:59:44 +00:00
expected_badxml.junitxml QTestlib/JUnit XML: Log most messages to standard output instead of error output 2021-01-15 18:05:40 +01:00
expected_badxml.lightxml generate_expected_output.py: update generated expected_* files 2017-10-11 09:59:44 +00:00
expected_badxml.tap testlib selftest: rebaseline tap results to not include line numbers 2020-07-22 23:23:01 +02:00
expected_badxml.teamcity generate_expected_output.py: update generated expected_* files 2017-10-11 09:59:44 +00:00
expected_badxml.txt generate_expected_output.py: update generated expected_* files 2017-10-11 09:59:44 +00:00
expected_badxml.xml generate_expected_output.py: update generated expected_* files 2017-10-11 09:59:44 +00:00
expected_benchlibcallgrind_0.txt generate_expected_output.py: update generated expected_* files 2017-10-11 09:59:44 +00:00
expected_benchlibcallgrind_1.txt generate_expected_output.py: update generated expected_* files 2017-10-11 09:59:44 +00:00
expected_benchlibcallgrind.csv Add a CSV logging feature to the benchlib 2014-02-14 00:34:25 +01:00
expected_benchlibcallgrind.junitxml testlib: Add start time and test duration to JUnit XML 2020-07-24 00:52:01 +02:00
expected_benchlibcallgrind.lightxml testlib selftest: rebaseline benchlibcallgrind results 2020-07-22 23:23:12 +02:00
expected_benchlibcallgrind.tap testlib selftest: rebaseline benchlibcallgrind results 2020-07-22 23:23:12 +02:00
expected_benchlibcallgrind.teamcity testlib selftest: rebaseline benchlibcallgrind results 2020-07-22 23:23:12 +02:00
expected_benchlibcallgrind.xml testlib selftest: rebaseline benchlibcallgrind results 2020-07-22 23:23:12 +02:00
expected_benchlibcounting.csv Add a CSV logging feature to the benchlib 2014-02-14 00:34:25 +01:00
expected_benchlibcounting.junitxml QTestlib/JUnit XML: Log most messages to standard output instead of error output 2021-01-15 18:05:40 +01:00
expected_benchlibcounting.lightxml generate_expected_output.py: update generated expected_* files 2017-10-11 09:59:44 +00:00
expected_benchlibcounting.tap testlib selftest: rebaseline tap results to not include line numbers 2020-07-22 23:23:01 +02:00
expected_benchlibcounting.teamcity generate_expected_output.py: update generated expected_* files 2017-10-11 09:59:44 +00:00
expected_benchlibcounting.txt generate_expected_output.py: update generated expected_* files 2017-10-11 09:59:44 +00:00
expected_benchlibcounting.xml generate_expected_output.py: update generated expected_* files 2017-10-11 09:59:44 +00:00
expected_benchlibeventcounter.csv Add a CSV logging feature to the benchlib 2014-02-14 00:34:25 +01:00
expected_benchlibeventcounter.junitxml testlib: Add start time and test duration to JUnit XML 2020-07-24 00:52:01 +02:00
expected_benchlibeventcounter.lightxml generate_expected_output.py: update generated expected_* files 2017-10-11 09:59:44 +00:00
expected_benchlibeventcounter.tap testlib: Add Test Anything Protocol (TAP) reporter 2018-03-14 14:28:36 +00:00
expected_benchlibeventcounter.teamcity generate_expected_output.py: update generated expected_* files 2017-10-11 09:59:44 +00:00
expected_benchlibeventcounter.txt generate_expected_output.py: update generated expected_* files 2017-10-11 09:59:44 +00:00
expected_benchlibeventcounter.xml generate_expected_output.py: update generated expected_* files 2017-10-11 09:59:44 +00:00
expected_benchliboptions.csv Add a CSV logging feature to the benchlib 2014-02-14 00:34:25 +01:00
expected_benchliboptions.junitxml testlib: Add start time and test duration to JUnit XML 2020-07-24 00:52:01 +02:00
expected_benchliboptions.lightxml generate_expected_output.py: update generated expected_* files 2017-10-11 09:59:44 +00:00
expected_benchliboptions.tap Add some missing expected_*.tap files for the testlib selftest 2019-02-01 14:42:23 +00:00
expected_benchliboptions.teamcity generate_expected_output.py: update generated expected_* files 2017-10-11 09:59:44 +00:00
expected_benchliboptions.txt generate_expected_output.py: update generated expected_* files 2017-10-11 09:59:44 +00:00
expected_benchliboptions.xml generate_expected_output.py: update generated expected_* files 2017-10-11 09:59:44 +00:00
expected_benchlibtickcounter.csv Add a CSV logging feature to the benchlib 2014-02-14 00:34:25 +01:00
expected_benchlibtickcounter.junitxml testlib: Add start time and test duration to JUnit XML 2020-07-24 00:52:01 +02:00
expected_benchlibtickcounter.lightxml generate_expected_output.py: update generated expected_* files 2017-10-11 09:59:44 +00:00
expected_benchlibtickcounter.tap testlib: Add Test Anything Protocol (TAP) reporter 2018-03-14 14:28:36 +00:00
expected_benchlibtickcounter.teamcity generate_expected_output.py: update generated expected_* files 2017-10-11 09:59:44 +00:00
expected_benchlibtickcounter.txt generate_expected_output.py: update generated expected_* files 2017-10-11 09:59:44 +00:00
expected_benchlibtickcounter.xml generate_expected_output.py: update generated expected_* files 2017-10-11 09:59:44 +00:00
expected_benchlibwalltime.csv Add a CSV logging feature to the benchlib 2014-02-14 00:34:25 +01:00
expected_benchlibwalltime.junitxml testlib: Add start time and test duration to JUnit XML 2020-07-24 00:52:01 +02:00
expected_benchlibwalltime.lightxml generate_expected_output.py: update generated expected_* files 2017-10-11 09:59:44 +00:00
expected_benchlibwalltime.tap testlib: Add Test Anything Protocol (TAP) reporter 2018-03-14 14:28:36 +00:00
expected_benchlibwalltime.teamcity generate_expected_output.py: update generated expected_* files 2017-10-11 09:59:44 +00:00
expected_benchlibwalltime.txt generate_expected_output.py: update generated expected_* files 2017-10-11 09:59:44 +00:00
expected_benchlibwalltime.xml generate_expected_output.py: update generated expected_* files 2017-10-11 09:59:44 +00:00
expected_blacklisted.junitxml QTestlib/JUnit XML: Log most messages to standard output instead of error output 2021-01-15 18:05:40 +01:00
expected_blacklisted.lightxml testlib: Add BXPASS and BXFAIL 2019-01-29 12:18:15 +00:00
expected_blacklisted.tap testlib selftest: check blacklisted test for test failures 2020-07-22 23:23:09 +02:00
expected_blacklisted.teamcity testlib: Add BXPASS and BXFAIL 2019-01-29 12:18:15 +00:00
expected_blacklisted.txt testlib selftest: check blacklisted test for test failures 2020-07-22 23:23:09 +02:00
expected_blacklisted.xml testlib: Add BXPASS and BXFAIL 2019-01-29 12:18:15 +00:00
expected_cmptest.junitxml QTestlib: Add formatting for QObject * in QCOMPARE 2021-05-26 11:02:48 +00:00
expected_cmptest.lightxml QTestlib: Add formatting for QObject * in QCOMPARE 2021-05-26 11:02:48 +00:00
expected_cmptest.tap QTestlib: Add formatting for QObject * in QCOMPARE 2021-05-26 11:02:48 +00:00
expected_cmptest.teamcity QTestlib: Add formatting for QObject * in QCOMPARE 2021-05-26 11:02:48 +00:00
expected_cmptest.txt QTestlib: Add formatting for QObject * in QCOMPARE 2021-05-26 11:02:48 +00:00
expected_cmptest.xml QTestlib: Add formatting for QObject * in QCOMPARE 2021-05-26 11:02:48 +00:00
expected_commandlinedata.junitxml QTestlib/JUnit XML: Log most messages to standard output instead of error output 2021-01-15 18:05:40 +01:00
expected_commandlinedata.lightxml generate_expected_output.py: update generated expected_* files 2017-10-11 09:59:44 +00:00
expected_commandlinedata.tap testlib: Add Test Anything Protocol (TAP) reporter 2018-03-14 14:28:36 +00:00
expected_commandlinedata.teamcity generate_expected_output.py: update generated expected_* files 2017-10-11 09:59:44 +00:00
expected_commandlinedata.txt generate_expected_output.py: update generated expected_* files 2017-10-11 09:59:44 +00:00
expected_commandlinedata.xml generate_expected_output.py: update generated expected_* files 2017-10-11 09:59:44 +00:00
expected_counting.junitxml QTestlib/JUnit XML: Log most messages to standard output instead of error output 2021-01-15 18:05:40 +01:00
expected_counting.lightxml generate_expected_output.py: update generated expected_* files 2017-10-11 09:59:44 +00:00
expected_counting.tap testlib selftest: rebaseline tap results to not include line numbers 2020-07-22 23:23:01 +02:00
expected_counting.teamcity generate_expected_output.py: update generated expected_* files 2017-10-11 09:59:44 +00:00
expected_counting.txt generate_expected_output.py: update generated expected_* files 2017-10-11 09:59:44 +00:00
expected_counting.xml generate_expected_output.py: update generated expected_* files 2017-10-11 09:59:44 +00:00
expected_crashes_1.txt QtTest: Output correct library name 2013-05-27 00:41:46 +02:00
expected_crashes_2.txt Add support for blacklisting test functions 2014-09-21 20:58:41 +02:00
expected_crashes_3.txt Testlib: Output function / total time along with crash dump. 2015-10-13 16:38:43 +00:00
expected_crashes_4.txt QTestlib/selftests: Add expected_crashes_4.txt for boot2qt 2018-02-11 09:41:24 +00:00
expected_crashes_5.txt Merge remote-tracking branch 'origin/5.13' into dev 2019-02-20 09:51:12 +01:00
expected_datatable.junitxml testlib: Add start time and test duration to JUnit XML 2020-07-24 00:52:01 +02:00
expected_datatable.lightxml generate_expected_output.py: update generated expected_* files 2017-10-11 09:59:44 +00:00
expected_datatable.tap testlib selftest: rebaseline tap results to not include line numbers 2020-07-22 23:23:01 +02:00
expected_datatable.teamcity generate_expected_output.py: update generated expected_* files 2017-10-11 09:59:44 +00:00
expected_datatable.txt generate_expected_output.py: update generated expected_* files 2017-10-11 09:59:44 +00:00
expected_datatable.xml generate_expected_output.py: update generated expected_* files 2017-10-11 09:59:44 +00:00
expected_datetime.junitxml testlib: Add start time and test duration to JUnit XML 2020-07-24 00:52:01 +02:00
expected_datetime.lightxml generate_expected_output.py: update generated expected_* files 2017-10-11 09:59:44 +00:00
expected_datetime.tap testlib selftest: rebaseline tap results to not include line numbers 2020-07-22 23:23:01 +02:00
expected_datetime.teamcity generate_expected_output.py: update generated expected_* files 2017-10-11 09:59:44 +00:00
expected_datetime.txt generate_expected_output.py: update generated expected_* files 2017-10-11 09:59:44 +00:00
expected_datetime.xml generate_expected_output.py: update generated expected_* files 2017-10-11 09:59:44 +00:00
expected_differentexec.junitxml testlib: Clarify that our XUnit reporter is actually a JUnit reporter 2020-02-03 13:48:25 +01:00
expected_differentexec.lightxml generate_expected_output.py: update generated expected_* files 2017-10-11 09:59:44 +00:00
expected_differentexec.tap Add some missing expected_*.tap files for the testlib selftest 2019-02-01 14:42:23 +00:00
expected_differentexec.teamcity generate_expected_output.py: update generated expected_* files 2017-10-11 09:59:44 +00:00
expected_differentexec.txt generate_expected_output.py: update generated expected_* files 2017-10-11 09:59:44 +00:00
expected_differentexec.xml generate_expected_output.py: update generated expected_* files 2017-10-11 09:59:44 +00:00
expected_exceptionthrow.junitxml testlib: Add start time and test duration to JUnit XML 2020-07-24 00:52:01 +02:00
expected_exceptionthrow.lightxml generate_expected_output.py: update generated expected_* files 2017-10-11 09:59:44 +00:00
expected_exceptionthrow.tap testlib selftest: rebaseline tap results to not include line numbers 2020-07-22 23:23:01 +02:00
expected_exceptionthrow.teamcity generate_expected_output.py: update generated expected_* files 2017-10-11 09:59:44 +00:00
expected_exceptionthrow.txt generate_expected_output.py: update generated expected_* files 2017-10-11 09:59:44 +00:00
expected_exceptionthrow.xml generate_expected_output.py: update generated expected_* files 2017-10-11 09:59:44 +00:00
expected_expectfail.junitxml QTestlib/JUnit XML: Log most messages to standard output instead of error output 2021-01-15 18:05:40 +01:00
expected_expectfail.lightxml generate_expected_output.py: update generated expected_* files 2017-10-11 09:59:44 +00:00
expected_expectfail.tap QTestResult: Don't pass a nullptr file to addFailure() 2020-09-30 16:20:29 +02:00
expected_expectfail.teamcity QTestResult: Don't pass a nullptr file to addFailure() 2020-09-30 16:20:29 +02:00
expected_expectfail.txt QTestResult: Don't pass a nullptr file to addFailure() 2020-09-30 16:20:29 +02:00
expected_expectfail.xml generate_expected_output.py: update generated expected_* files 2017-10-11 09:59:44 +00:00
expected_failcleanup.junitxml testlib: Add start time and test duration to JUnit XML 2020-07-24 00:52:01 +02:00
expected_failcleanup.lightxml generate_expected_output.py: update generated expected_* files 2017-10-11 09:59:44 +00:00
expected_failcleanup.tap testlib selftest: rebaseline tap results to not include line numbers 2020-07-22 23:23:01 +02:00
expected_failcleanup.teamcity generate_expected_output.py: update generated expected_* files 2017-10-11 09:59:44 +00:00
expected_failcleanup.txt generate_expected_output.py: update generated expected_* files 2017-10-11 09:59:44 +00:00
expected_failcleanup.xml generate_expected_output.py: update generated expected_* files 2017-10-11 09:59:44 +00:00
expected_faildatatype.junitxml QTestlib/JUnit XML: Log most messages to standard output instead of error output 2021-01-15 18:05:40 +01:00
expected_faildatatype.lightxml Test that mismatches of datatype in test data columns are rejected 2018-12-06 18:29:22 +00:00
expected_faildatatype.tap Test that mismatches of datatype in test data columns are rejected 2018-12-06 18:29:22 +00:00
expected_faildatatype.teamcity Test that mismatches of datatype in test data columns are rejected 2018-12-06 18:29:22 +00:00
expected_faildatatype.txt Test that mismatches of datatype in test data columns are rejected 2018-12-06 18:29:22 +00:00
expected_faildatatype.xml Test that mismatches of datatype in test data columns are rejected 2018-12-06 18:29:22 +00:00
expected_failfetchtype.junitxml testlib: Add start time and test duration to JUnit XML 2020-07-24 00:52:01 +02:00
expected_failfetchtype.lightxml Test that mismatches of datatype in test data columns are rejected 2018-12-06 18:29:22 +00:00
expected_failfetchtype.tap Test that mismatches of datatype in test data columns are rejected 2018-12-06 18:29:22 +00:00
expected_failfetchtype.teamcity Test that mismatches of datatype in test data columns are rejected 2018-12-06 18:29:22 +00:00
expected_failfetchtype.txt Test that mismatches of datatype in test data columns are rejected 2018-12-06 18:29:22 +00:00
expected_failfetchtype.xml Test that mismatches of datatype in test data columns are rejected 2018-12-06 18:29:22 +00:00
expected_failinit.junitxml testlib: Add start time and test duration to JUnit XML 2020-07-24 00:52:01 +02:00
expected_failinit.lightxml generate_expected_output.py: update generated expected_* files 2017-10-11 09:59:44 +00:00
expected_failinit.tap testlib selftest: rebaseline tap results to not include line numbers 2020-07-22 23:23:01 +02:00
expected_failinit.teamcity generate_expected_output.py: update generated expected_* files 2017-10-11 09:59:44 +00:00
expected_failinit.txt generate_expected_output.py: update generated expected_* files 2017-10-11 09:59:44 +00:00
expected_failinit.xml generate_expected_output.py: update generated expected_* files 2017-10-11 09:59:44 +00:00
expected_failinitdata.junitxml testlib: Add start time and test duration to JUnit XML 2020-07-24 00:52:01 +02:00
expected_failinitdata.lightxml generate_expected_output.py: update generated expected_* files 2017-10-11 09:59:44 +00:00
expected_failinitdata.tap testlib selftest: rebaseline tap results to not include line numbers 2020-07-22 23:23:01 +02:00
expected_failinitdata.teamcity generate_expected_output.py: update generated expected_* files 2017-10-11 09:59:44 +00:00
expected_failinitdata.txt generate_expected_output.py: update generated expected_* files 2017-10-11 09:59:44 +00:00
expected_failinitdata.xml generate_expected_output.py: update generated expected_* files 2017-10-11 09:59:44 +00:00
expected_fetchbogus.junitxml testlib: Add start time and test duration to JUnit XML 2020-07-24 00:52:01 +02:00
expected_fetchbogus.lightxml generate_expected_output.py: update generated expected_* files 2017-10-11 09:59:44 +00:00
expected_fetchbogus.tap testlib: Add Test Anything Protocol (TAP) reporter 2018-03-14 14:28:36 +00:00
expected_fetchbogus.teamcity generate_expected_output.py: update generated expected_* files 2017-10-11 09:59:44 +00:00
expected_fetchbogus.txt generate_expected_output.py: update generated expected_* files 2017-10-11 09:59:44 +00:00
expected_fetchbogus.xml generate_expected_output.py: update generated expected_* files 2017-10-11 09:59:44 +00:00
expected_findtestdata.junitxml testlib: Add start time and test duration to JUnit XML 2020-07-24 00:52:01 +02:00
expected_findtestdata.lightxml generate_expected_output.py: update generated expected_* files 2017-10-11 09:59:44 +00:00
expected_findtestdata.tap testlib: Add Test Anything Protocol (TAP) reporter 2018-03-14 14:28:36 +00:00
expected_findtestdata.teamcity generate_expected_output.py: update generated expected_* files 2017-10-11 09:59:44 +00:00
expected_findtestdata.txt generate_expected_output.py: update generated expected_* files 2017-10-11 09:59:44 +00:00
expected_findtestdata.xml generate_expected_output.py: update generated expected_* files 2017-10-11 09:59:44 +00:00
expected_float.junitxml QTestlib/JUnit XML: Log most messages to standard output instead of error output 2021-01-15 18:05:40 +01:00
expected_float.lightxml QCOMPARE: treat values as equal if qFuzzyIsNull(each) 2020-04-30 13:44:08 +02:00
expected_float.tap testlib selftest: rebaseline tap results to not include line numbers 2020-07-22 23:23:01 +02:00
expected_float.teamcity QCOMPARE: treat values as equal if qFuzzyIsNull(each) 2020-04-30 13:44:08 +02:00
expected_float.txt QCOMPARE: treat values as equal if qFuzzyIsNull(each) 2020-04-30 13:44:08 +02:00
expected_float.xml QCOMPARE: treat values as equal if qFuzzyIsNull(each) 2020-04-30 13:44:08 +02:00
expected_globaldata.junitxml QTestlib/JUnit XML: Log most messages to standard output instead of error output 2021-01-15 18:05:40 +01:00
expected_globaldata.lightxml Fix the skip-check in TestMethods::invokeTest() 2019-03-29 14:00:03 +00:00
expected_globaldata.tap Fix the skip-check in TestMethods::invokeTest() 2019-03-29 14:00:03 +00:00
expected_globaldata.teamcity Fix the skip-check in TestMethods::invokeTest() 2019-03-29 14:00:03 +00:00
expected_globaldata.txt Fix the skip-check in TestMethods::invokeTest() 2019-03-29 14:00:03 +00:00
expected_globaldata.xml Fix the skip-check in TestMethods::invokeTest() 2019-03-29 14:00:03 +00:00
expected_keyboard.junitxml testlib: Add start time and test duration to JUnit XML 2020-07-24 00:52:01 +02:00
expected_keyboard.lightxml Add self-tests for QTest::keyPress() and QTest::keyRelease() 2018-05-07 14:53:18 +00:00
expected_keyboard.tap Add self-tests for QTest::keyPress() and QTest::keyRelease() 2018-05-07 14:53:18 +00:00
expected_keyboard.teamcity Add self-tests for QTest::keyPress() and QTest::keyRelease() 2018-05-07 14:53:18 +00:00
expected_keyboard.txt Add self-tests for QTest::keyPress() and QTest::keyRelease() 2018-05-07 14:53:18 +00:00
expected_keyboard.xml Add self-tests for QTest::keyPress() and QTest::keyRelease() 2018-05-07 14:53:18 +00:00
expected_longstring.junitxml testlib: Add start time and test duration to JUnit XML 2020-07-24 00:52:01 +02:00
expected_longstring.lightxml generate_expected_output.py: update generated expected_* files 2017-10-11 09:59:44 +00:00
expected_longstring.tap testlib selftest: rebaseline tap results to not include line numbers 2020-07-22 23:23:01 +02:00
expected_longstring.teamcity generate_expected_output.py: update generated expected_* files 2017-10-11 09:59:44 +00:00
expected_longstring.txt generate_expected_output.py: update generated expected_* files 2017-10-11 09:59:44 +00:00
expected_longstring.xml generate_expected_output.py: update generated expected_* files 2017-10-11 09:59:44 +00:00
expected_maxwarnings.junitxml QTestlib/JUnit XML: Log most messages to standard output instead of error output 2021-01-15 18:05:40 +01:00
expected_maxwarnings.lightxml generate_expected_output.py: update generated expected_* files 2017-10-11 09:59:44 +00:00
expected_maxwarnings.tap testlib: Add Test Anything Protocol (TAP) reporter 2018-03-14 14:28:36 +00:00
expected_maxwarnings.teamcity Add flowId to messages when logging in TeamCity format 2017-08-04 18:48:48 +00:00
expected_maxwarnings.txt generate_expected_output.py: update generated expected_* files 2017-10-11 09:59:44 +00:00
expected_maxwarnings.xml generate_expected_output.py: update generated expected_* files 2017-10-11 09:59:44 +00:00
expected_multiexec.junitxml testlib: Add start time and test duration to JUnit XML 2020-07-24 00:52:01 +02:00
expected_multiexec.lightxml generate_expected_output.py: update generated expected_* files 2017-10-11 09:59:44 +00:00
expected_multiexec.tap Add some missing expected_*.tap files for the testlib selftest 2019-02-01 14:42:23 +00:00
expected_multiexec.teamcity generate_expected_output.py: update generated expected_* files 2017-10-11 09:59:44 +00:00
expected_multiexec.txt generate_expected_output.py: update generated expected_* files 2017-10-11 09:59:44 +00:00
expected_multiexec.xml generate_expected_output.py: update generated expected_* files 2017-10-11 09:59:44 +00:00
expected_pairdiagnostics.junitxml testlib: Add start time and test duration to JUnit XML 2020-07-24 00:52:01 +02:00
expected_pairdiagnostics.lightxml Long live std::pair! 2020-06-10 16:49:08 +02:00
expected_pairdiagnostics.tap testlib selftest: rebaseline tap results to not include line numbers 2020-07-22 23:23:01 +02:00
expected_pairdiagnostics.teamcity Long live std::pair! 2020-06-10 16:49:08 +02:00
expected_pairdiagnostics.txt Long live std::pair! 2020-06-10 16:49:08 +02:00
expected_pairdiagnostics.xml Long live std::pair! 2020-06-10 16:49:08 +02:00
expected_pass.junitxml testlib: Add start time and test duration to JUnit XML 2020-07-24 00:52:01 +02:00
expected_pass.lightxml Add 'pass' test to testlib selftests 2020-03-05 15:18:04 +01:00
expected_pass.tap Add 'pass' test to testlib selftests 2020-03-05 15:18:04 +01:00
expected_pass.teamcity Add 'pass' test to testlib selftests 2020-03-05 15:18:04 +01:00
expected_pass.txt Add 'pass' test to testlib selftests 2020-03-05 15:18:04 +01:00
expected_pass.xml Add 'pass' test to testlib selftests 2020-03-05 15:18:04 +01:00
expected_printdatatags.txt Fixing naming of selftests. 2011-12-05 09:02:15 +01:00
expected_printdatatagswithglobaltags.txt Fixing naming of selftests. 2011-12-05 09:02:15 +01:00
expected_qexecstringlist.junitxml testlib: Add start time and test duration to JUnit XML 2020-07-24 00:52:01 +02:00
expected_qexecstringlist.lightxml generate_expected_output.py: update generated expected_* files 2017-10-11 09:59:44 +00:00
expected_qexecstringlist.tap Add some missing expected_*.tap files for the testlib selftest 2019-02-01 14:42:23 +00:00
expected_qexecstringlist.teamcity generate_expected_output.py: update generated expected_* files 2017-10-11 09:59:44 +00:00
expected_qexecstringlist.txt generate_expected_output.py: update generated expected_* files 2017-10-11 09:59:44 +00:00
expected_qexecstringlist.xml generate_expected_output.py: update generated expected_* files 2017-10-11 09:59:44 +00:00
expected_signaldumper.junitxml QTestlib/JUnit XML: Log most messages to standard output instead of error output 2021-01-15 18:05:40 +01:00
expected_signaldumper.lightxml testlib: Defer signal dumper start until tests are ready to run 2020-07-22 23:23:16 +02:00
expected_signaldumper.tap testlib: Defer signal dumper start until tests are ready to run 2020-07-22 23:23:16 +02:00
expected_signaldumper.teamcity testlib: Defer signal dumper start until tests are ready to run 2020-07-22 23:23:16 +02:00
expected_signaldumper.txt testlib: Defer signal dumper start until tests are ready to run 2020-07-22 23:23:16 +02:00
expected_signaldumper.xml testlib: Defer signal dumper start until tests are ready to run 2020-07-22 23:23:16 +02:00
expected_silent.junitxml QTestlib/JUnit XML: Log most messages to standard output instead of error output 2021-01-15 18:05:40 +01:00
expected_silent.lightxml generate_expected_output.py: update generated expected_* files 2017-10-11 09:59:44 +00:00
expected_silent.tap testlib selftest: rebaseline tap results to not include line numbers 2020-07-22 23:23:01 +02:00
expected_silent.teamcity generate_expected_output.py: update generated expected_* files 2017-10-11 09:59:44 +00:00
expected_silent.txt generate_expected_output.py: update generated expected_* files 2017-10-11 09:59:44 +00:00
expected_silent.xml generate_expected_output.py: update generated expected_* files 2017-10-11 09:59:44 +00:00
expected_singleskip.junitxml QTestlib/JUnit XML: Log most messages to standard output instead of error output 2021-01-15 18:05:40 +01:00
expected_singleskip.lightxml generate_expected_output.py: update generated expected_* files 2017-10-11 09:59:44 +00:00
expected_singleskip.tap testlib: Add Test Anything Protocol (TAP) reporter 2018-03-14 14:28:36 +00:00
expected_singleskip.teamcity generate_expected_output.py: update generated expected_* files 2017-10-11 09:59:44 +00:00
expected_singleskip.txt generate_expected_output.py: update generated expected_* files 2017-10-11 09:59:44 +00:00
expected_singleskip.xml generate_expected_output.py: update generated expected_* files 2017-10-11 09:59:44 +00:00
expected_skip.junitxml QTestlib/JUnit XML: Log most messages to standard output instead of error output 2021-01-15 18:05:40 +01:00
expected_skip.lightxml generate_expected_output.py: update generated expected_* files 2017-10-11 09:59:44 +00:00
expected_skip.tap testlib: Add Test Anything Protocol (TAP) reporter 2018-03-14 14:28:36 +00:00
expected_skip.teamcity generate_expected_output.py: update generated expected_* files 2017-10-11 09:59:44 +00:00
expected_skip.txt generate_expected_output.py: update generated expected_* files 2017-10-11 09:59:44 +00:00
expected_skip.xml generate_expected_output.py: update generated expected_* files 2017-10-11 09:59:44 +00:00
expected_skipcleanup.junitxml QTestlib/JUnit XML: Log most messages to standard output instead of error output 2021-01-15 18:05:40 +01:00
expected_skipcleanup.lightxml generate_expected_output.py: update generated expected_* files 2017-10-11 09:59:44 +00:00
expected_skipcleanup.tap testlib: Add Test Anything Protocol (TAP) reporter 2018-03-14 14:28:36 +00:00
expected_skipcleanup.teamcity generate_expected_output.py: update generated expected_* files 2017-10-11 09:59:44 +00:00
expected_skipcleanup.txt generate_expected_output.py: update generated expected_* files 2017-10-11 09:59:44 +00:00
expected_skipcleanup.xml generate_expected_output.py: update generated expected_* files 2017-10-11 09:59:44 +00:00
expected_skipinit.junitxml QTestlib/JUnit XML: Log most messages to standard output instead of error output 2021-01-15 18:05:40 +01:00
expected_skipinit.lightxml generate_expected_output.py: update generated expected_* files 2017-10-11 09:59:44 +00:00
expected_skipinit.tap testlib: Add Test Anything Protocol (TAP) reporter 2018-03-14 14:28:36 +00:00
expected_skipinit.teamcity generate_expected_output.py: update generated expected_* files 2017-10-11 09:59:44 +00:00
expected_skipinit.txt generate_expected_output.py: update generated expected_* files 2017-10-11 09:59:44 +00:00
expected_skipinit.xml generate_expected_output.py: update generated expected_* files 2017-10-11 09:59:44 +00:00
expected_skipinitdata.junitxml QTestlib/JUnit XML: Log most messages to standard output instead of error output 2021-01-15 18:05:40 +01:00
expected_skipinitdata.lightxml generate_expected_output.py: update generated expected_* files 2017-10-11 09:59:44 +00:00
expected_skipinitdata.tap testlib: Add Test Anything Protocol (TAP) reporter 2018-03-14 14:28:36 +00:00
expected_skipinitdata.teamcity generate_expected_output.py: update generated expected_* files 2017-10-11 09:59:44 +00:00
expected_skipinitdata.txt generate_expected_output.py: update generated expected_* files 2017-10-11 09:59:44 +00:00
expected_skipinitdata.xml generate_expected_output.py: update generated expected_* files 2017-10-11 09:59:44 +00:00
expected_sleep.junitxml testlib: Add start time and test duration to JUnit XML 2020-07-24 00:52:01 +02:00
expected_sleep.lightxml Fix integer overflows in QDeadlineTimer 2019-05-08 17:19:44 +00:00
expected_sleep.tap Fix integer overflows in QDeadlineTimer 2019-05-08 17:19:44 +00:00
expected_sleep.teamcity Fix integer overflows in QDeadlineTimer 2019-05-08 17:19:44 +00:00
expected_sleep.txt Fix integer overflows in QDeadlineTimer 2019-05-08 17:19:44 +00:00
expected_sleep.xml Fix integer overflows in QDeadlineTimer 2019-05-08 17:19:44 +00:00
expected_strcmp.junitxml QTestlib/JUnit XML: Log most messages to standard output instead of error output 2021-01-15 18:05:40 +01:00
expected_strcmp.lightxml generate_expected_output.py: update generated expected_* files 2017-10-11 09:59:44 +00:00
expected_strcmp.tap testlib selftest: rebaseline tap results to not include line numbers 2020-07-22 23:23:01 +02:00
expected_strcmp.teamcity generate_expected_output.py: update generated expected_* files 2017-10-11 09:59:44 +00:00
expected_strcmp.txt generate_expected_output.py: update generated expected_* files 2017-10-11 09:59:44 +00:00
expected_strcmp.xml generate_expected_output.py: update generated expected_* files 2017-10-11 09:59:44 +00:00
expected_subtest.junitxml QTestlib/JUnit XML: Log most messages to standard output instead of error output 2021-01-15 18:05:40 +01:00
expected_subtest.lightxml generate_expected_output.py: update generated expected_* files 2017-10-11 09:59:44 +00:00
expected_subtest.tap testlib selftest: rebaseline tap results to not include line numbers 2020-07-22 23:23:01 +02:00
expected_subtest.teamcity generate_expected_output.py: update generated expected_* files 2017-10-11 09:59:44 +00:00
expected_subtest.txt generate_expected_output.py: update generated expected_* files 2017-10-11 09:59:44 +00:00
expected_subtest.xml generate_expected_output.py: update generated expected_* files 2017-10-11 09:59:44 +00:00
expected_testlib.junitxml QTestlib: Add formatting for QObject * in QCOMPARE 2021-05-26 11:02:48 +00:00
expected_testlib.lightxml QTestlib: Add formatting for QObject * in QCOMPARE 2021-05-26 11:02:48 +00:00
expected_testlib.tap QTestlib: Add formatting for QObject * in QCOMPARE 2021-05-26 11:02:48 +00:00
expected_testlib.teamcity QTestlib: Add formatting for QObject * in QCOMPARE 2021-05-26 11:02:48 +00:00
expected_testlib.txt QTestlib: Add formatting for QObject * in QCOMPARE 2021-05-26 11:02:48 +00:00
expected_testlib.xml QTestlib: Add formatting for QObject * in QCOMPARE 2021-05-26 11:02:48 +00:00
expected_tuplediagnostics.junitxml testlib: Add start time and test duration to JUnit XML 2020-07-24 00:52:01 +02:00
expected_tuplediagnostics.lightxml Eliminate some stray misleading paths from expected output files 2019-01-16 18:47:41 +00:00
expected_tuplediagnostics.tap testlib selftest: rebaseline tap results to not include line numbers 2020-07-22 23:23:01 +02:00
expected_tuplediagnostics.teamcity Eliminate some stray misleading paths from expected output files 2019-01-16 18:47:41 +00:00
expected_tuplediagnostics.txt Eliminate some stray misleading paths from expected output files 2019-01-16 18:47:41 +00:00
expected_tuplediagnostics.xml Eliminate some stray misleading paths from expected output files 2019-01-16 18:47:41 +00:00
expected_verbose1.junitxml QTestlib/JUnit XML: Log most messages to standard output instead of error output 2021-01-15 18:05:40 +01:00
expected_verbose1.lightxml generate_expected_output.py: update generated expected_* files 2017-10-11 09:59:44 +00:00
expected_verbose1.tap testlib selftest: rebaseline tap results to not include line numbers 2020-07-22 23:23:01 +02:00
expected_verbose1.teamcity generate_expected_output.py: update generated expected_* files 2017-10-11 09:59:44 +00:00
expected_verbose1.txt generate_expected_output.py: update generated expected_* files 2017-10-11 09:59:44 +00:00
expected_verbose1.xml generate_expected_output.py: update generated expected_* files 2017-10-11 09:59:44 +00:00
expected_verbose2.junitxml QTestlib/JUnit XML: Log most messages to standard output instead of error output 2021-01-15 18:05:40 +01:00
expected_verbose2.lightxml generate_expected_output.py: update generated expected_* files 2017-10-11 09:59:44 +00:00
expected_verbose2.tap testlib selftest: rebaseline tap results to not include line numbers 2020-07-22 23:23:01 +02:00
expected_verbose2.teamcity generate_expected_output.py: update generated expected_* files 2017-10-11 09:59:44 +00:00
expected_verbose2.txt generate_expected_output.py: update generated expected_* files 2017-10-11 09:59:44 +00:00
expected_verbose2.xml generate_expected_output.py: update generated expected_* files 2017-10-11 09:59:44 +00:00
expected_verifyexceptionthrown.junitxml testlib: Add start time and test duration to JUnit XML 2020-07-24 00:52:01 +02:00
expected_verifyexceptionthrown.lightxml generate_expected_output.py: update generated expected_* files 2017-10-11 09:59:44 +00:00
expected_verifyexceptionthrown.tap testlib selftest: rebaseline tap results to not include line numbers 2020-07-22 23:23:01 +02:00
expected_verifyexceptionthrown.teamcity generate_expected_output.py: update generated expected_* files 2017-10-11 09:59:44 +00:00
expected_verifyexceptionthrown.txt generate_expected_output.py: update generated expected_* files 2017-10-11 09:59:44 +00:00
expected_verifyexceptionthrown.xml generate_expected_output.py: update generated expected_* files 2017-10-11 09:59:44 +00:00
expected_warnings.junitxml QTestlib/JUnit XML: Log most messages to standard output instead of error output 2021-01-15 18:05:40 +01:00
expected_warnings.lightxml generate_expected_output.py: update generated expected_* files 2017-10-11 09:59:44 +00:00
expected_warnings.tap QTestResult: Don't pass a nullptr file to addFailure() 2020-09-30 16:20:29 +02:00
expected_warnings.teamcity QTestResult: Don't pass a nullptr file to addFailure() 2020-09-30 16:20:29 +02:00
expected_warnings.txt QTestResult: Don't pass a nullptr file to addFailure() 2020-09-30 16:20:29 +02:00
expected_warnings.xml generate_expected_output.py: update generated expected_* files 2017-10-11 09:59:44 +00:00
expected_watchdog.junitxml testlib: Add start time and test duration to JUnit XML 2020-07-24 00:52:01 +02:00
expected_watchdog.lightxml Add a testlib selftest for the watchdog 2018-12-06 18:29:47 +00:00
expected_watchdog.tap Add a testlib selftest for the watchdog 2018-12-06 18:29:47 +00:00
expected_watchdog.teamcity Add a testlib selftest for the watchdog 2018-12-06 18:29:47 +00:00
expected_watchdog.txt Add a testlib selftest for the watchdog 2018-12-06 18:29:47 +00:00
expected_watchdog.xml Add a testlib selftest for the watchdog 2018-12-06 18:29:47 +00:00
expected_xunit.junitxml QTestlib/JUnit XML: Log most messages to standard output instead of error output 2021-01-15 18:05:40 +01:00
expected_xunit.lightxml generate_expected_output.py: update generated expected_* files 2017-10-11 09:59:44 +00:00
expected_xunit.tap testlib selftest: rebaseline tap results to not include line numbers 2020-07-22 23:23:01 +02:00
expected_xunit.teamcity generate_expected_output.py: update generated expected_* files 2017-10-11 09:59:44 +00:00
expected_xunit.txt generate_expected_output.py: update generated expected_* files 2017-10-11 09:59:44 +00:00
expected_xunit.xml generate_expected_output.py: update generated expected_* files 2017-10-11 09:59:44 +00:00
generate_expected_output.py Brush up QTestlib/generate_expected_output.py 2021-01-15 15:37:18 +01:00
qt_attribution.json Rewrite Qt Testlib selftest to not rely on Qt Testlib itself 2020-05-11 15:42:28 +02:00
README testlib selftest: Add README explaining how to run and debug tests 2020-07-21 13:43:51 +02:00
tst_selftests.cpp Move QEMU emulation detector to QTest 2021-02-13 10:02:51 +02:00

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

Running the QtTestLib selftests with Catch2
===========================================

Catch2 [1] is a header only test framework that we use to allow
testing QtTestLib without relying on any part of testlib itself.

To run the test suite, execute 'make check' or './tst_selftests'
as normal. This should print:

    ===================================================================
    All tests passed (2453 assertions in 5 test cases)

To run specific tests, first lists the available tests:

     ./tst_selftests -l
    All available test cases:
      Loggers support both old and new style arguments
      Loggers can output to both file and stdout
      Logging to file and stdout at the same time
      All loggers can be enabled at the same time
      Scenario: Test output of the loggers is as expected
    5 test cases

Then pass the name of the test in quotes as the first argument:

     ./tst_selftests "Loggers support both old and new style arguments"
    Filters: Loggers support both old and new style arguments
    ==================================================================
    All tests passed (96 assertions in 1 test case)

You can find the tests in the sources as individual TEST_CASE
entries. Note that each of these tests run the tests once per
logger, and in the case of the test log check also all sub tests,
so the amount of actual test assertions is much higher than the
five tests listed above.

To see what the tests is actually doing, pass the -s option.
This will result in very verbose output. Each leaf test is
prefixed with a heading:

    ---------------------------------------------------------------
          Given: The QTestLog::TAP logger
           When: Passing arguments with new style
    ---------------------------------------------------------------

You can choose a specific subtest by passing the -c option:

     ./tst_selftests "Scenario: Test output of the loggers is as expected" \
        -c "Given: The QTestLog::Plain logger" \
        -c 'And given: The "skip" subtest'

It's possible to pass only the first -c options, to e.g. run all
tests with the Plain logger, but it's unfortunately not possible
to pass only the last -c option, to run the 'skip' subtest with
all loggers.

If a test fails it will print the expected, actual, and difference.
The test results are also left in a temporary directory for closer
inspection.

Add new tests by modifying selftest.pri and CMakeLists.txt, adding
a new subprogram.

Generating new test expectations is done using the python script
in this directory (generate_expected_output.py). In the future this
will be done with the --rebase option to ./tst_selftest, but this
is not fleshed out yet.

[1] https://github.com/catchorg/Catch2