aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/autotest
Commit message (Collapse)AuthorAgeFilesLines
* Remove invisible translated stringsRobert Loehning2020-10-191-3/+0
| | | | | Change-Id: If03c1e5d160d375e3a8ecd2c534214e3c92ae918 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* AutoTest: Prefer active target over furtherChristian Stenger2020-10-161-2/+5
| | | | | | | | | | | | If there are more than one target for a run configuration we ended up in the first matching. Tests may use different environments to test different things. If the user tried to handle this by using a modified environment for different targets failed even when the correct target was selected. Change-Id: Ie954c985969ffd187fe60b4ecb86aa2717d559f1 Reviewed-by: David Schulz <david.schulz@qt.io>
* Core: De-pure IOutputPane::visibilityChanged()Orgad Shaneh2020-10-092-5/+0
| | | | | | | | Most implementations are empty. Change-Id: I811cacfc2918c8b2803798c4f5d3dabc7d60ccd1 Reviewed-by: André Hartmann <aha_1980@gmx.de> Reviewed-by: hjk <hjk@qt.io>
* Qt6: Sprinkle QLatin1Strings for QStringView comparisonsEike Ziller2020-10-081-5/+5
| | | | | | Task-number: QTCREATORBUG-24098 Change-Id: I2fb79bcfd0537a6704a1ee8db840401d6beca7a0 Reviewed-by: hjk <hjk@qt.io>
* Merge remote-tracking branch 'origin/4.13' into 4.14Eike Ziller2020-10-081-1/+1
|\ | | | | | | Change-Id: Ia20a937786be651a5fe9daefb856f7779905ef68
| * AutoTest: Fix summary part IIIChristian Stenger2020-10-071-1/+1
| | | | | | | | | | | | | | Amends 479f6c8. Change-Id: I3bd7a789eef8d53610f87ccaafa43c921ff1e23f Reviewed-by: David Schulz <david.schulz@qt.io>
* | Merge remote-tracking branch 'origin/4.13' into masterEike Ziller2020-10-023-8/+8
|\| | | | | | | Change-Id: I3f2a6c553819e992da7e9f538dc44b95b482359e
| * AutoTest: Fix marking for removal and sweeping of Quick TestsChristian Stenger2020-09-291-0/+1
| | | | | | | | | | | | | | | | | | | | | | If opening and editing a QML file we did no more mark tests of this file as to be removed. In turn we may have got "new" items when e.g. just modifying the name of a function or test case and but did not lose the old one. Broke with 90fd6870c5a. Change-Id: I86917089ffb9d4acb2f735f2f3e0f112d8cdc65a Reviewed-by: David Schulz <david.schulz@qt.io>
| * AutoTest: Fix handling of summaryChristian Stenger2020-09-242-8/+7
| | | | | | | | | | | | | | | | | | | | | | | | Avoid overwriting already gathered results and handle special cases like parameterized boost tests correctly. Beside this take into account that fatals on the boost side are treated as failures when printing the summary. Amends 6ab70135797c. Change-Id: I3815f79cbb4d16fd7b3d286617d79b30e94ccdd8 Reviewed-by: David Schulz <david.schulz@qt.io> Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* | AutoTest: Consolidate common functionalityChristian Stenger2020-10-013-141/+42
| | | | | | | | | | | | | | | | While at it remove unused code path. Change-Id: I15dff61131c5f3c9301cd733e1c8b92bd848f084 Reviewed-by: David Schulz <david.schulz@qt.io> Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* | AutoTest: Improve Boost test results handlingChristian Stenger2020-10-012-9/+34
| | | | | | | | | | | | | | | | This improves constructing the results tree and additionally fixes matching free functions to their respective test tree items. Change-Id: I79490507ba7a1934a7be010a00cb341374bf93ad Reviewed-by: David Schulz <david.schulz@qt.io>
* | AutoTest: Immediately update checkstate cacheChristian Stenger2020-10-012-3/+21
| | | | | | | | | | | | | | | | | | | | ...as soon a modification of the check states happens instead of waiting for the next parsing to update. Otherwise we might lose all changes that have been made without a parse. Change-Id: I33a92786742eb2b58c1cfcdb438412a2c5bbaed8 Reviewed-by: David Schulz <david.schulz@qt.io>
* | AutoTest: Cache failed statesChristian Stenger2020-10-012-1/+13
| | | | | | | | | | | | | | | | Avoid losing failed states of test while editing files that trigger a re-parse and may drop the original item. Change-Id: Ia66c7f61819d610cced42ff9f86449855b80da2a Reviewed-by: David Schulz <david.schulz@qt.io>
* | AutoTest: Improve matching test results to tree itemChristian Stenger2020-09-253-13/+27
| | | | | | | | | | | | | | | | | | | | | | ...when using Boost UTF. We need to take parameterized and templated tests into account differently and we may have results that do not provide file information at all, so try to find a matching tree item from what we have got. Change-Id: Ia0b1894d5dd729d39e5724d9fdeadd574a9cfde5 Reviewed-by: Christian Stenger <christian.stenger@qt.io> Reviewed-by: David Schulz <david.schulz@qt.io>
* | AutoTest: Fix file path construction againChristian Stenger2020-09-241-5/+5
| | | | | | | | | | | | | | | | | | b74ec90 fixed the cmake part, but broke the rest. Redo the file path construction to make it work with qmake, qbs and cmake on Windows when using Catch2. Change-Id: Ic41e015458ccf750421c29b1a200115c13db3ccf Reviewed-by: David Schulz <david.schulz@qt.io>
* | Merge remote-tracking branch 'origin/4.13' into masterEike Ziller2020-09-231-4/+7
|\| | | | | | | | | | | | | | | | | | | Conflicts: cmake/QtCreatorIDEBranding.cmake qbs/modules/qtc/qtc.qbs qtcreator_ide_branding.pri src/plugins/mcusupport/mcusupportoptions.cpp Change-Id: I3fd0d0a6a3ff30bb990da3dc0f78e69f9e1247ef
| * AutoTest: Fix construction of file paths for catch resultsChristian Stenger2020-09-171-4/+7
| | | | | | | | | | | | | | | | Using Catch2 on Windows with CMake lead to not having file information as the file information was generated differently. Change-Id: I3e0951b517a4a8a86f1ffa1009c1a2815565f3b3 Reviewed-by: David Schulz <david.schulz@qt.io>
* | AutoTest: Fix re-running failed data-driven QuickTestsChristian Stenger2020-09-211-1/+2
| | | | | | | | | | | | | | | | | | | | | | QuickTests are not displayed inside the Tests tree which makes marking them as failed or trying to run these tests from the results pane impossible. Work around by treating them as functions to re-run the whole function instead of a single data tag if this happens. Change-Id: I92f6403ff0e02302c52184d4403f0194226a9989 Reviewed-by: David Schulz <david.schulz@qt.io>
* | Fix build issues with Qt6Eike Ziller2020-09-183-8/+8
| | | | | | | | | | | | | | | | Change from QStringRef to QStringView at various places. Task-number: QTCREATORBUG-24098 Change-Id: Ia7a634fa26464fbb2962724d5f0e188cecc68801 Reviewed-by: hjk <hjk@qt.io>
* | Make QmlJS(Tools) build with Qt5 & Qt6Eike Ziller2020-09-171-11/+9
| | | | | | | | | | | | | | Port from QStringRef to QStringView Change-Id: I472d16f20e40ca52b8e5d481850a6bd8a1a38f3b Reviewed-by: hjk <hjk@qt.io>
* | Merge remote-tracking branch 'origin/4.13' into masterEike Ziller2020-09-172-11/+10
|\| | | | | | | | | | | | | Conflicts: src/plugins/qmakeprojectmanager/qmakeproject.cpp Change-Id: Ieb1c3e946f11d3c4fa1ee6b5afdf83cc532d8aed
| * AutoTest: Fix possible nullptr accessChristian Stenger2020-09-151-7/+9
| | | | | | | | | | | | | | | | | | If the process of the test executable cannot be started for whatever reason we will not have an active run configuration or output reader. Change-Id: I50146a2c8228ad39574e007ae2659465122ad20b Reviewed-by: David Schulz <david.schulz@qt.io>
| * AutoTest: Fix summary for boostChristian Stenger2020-09-141-4/+1
| | | | | | | | | | | | | | | | | | | | Do not take skipped tests into account when computing passes out of the available information. These are handled separately and may lead to a negative passes amount. Change-Id: I47bb1f054468dc5374d0d4e7fdeb3ad87efd0dff Reviewed-by: David Schulz <david.schulz@qt.io>
* | AutoTest: Support run failedChristian Stenger2020-09-165-4/+34
| | | | | | | | | | | | | | | | | | If the last run had failures and the test frameworks support matching a test result to a test tree item give the user an easy way to re-run all failed tests. Change-Id: I4f3150ca8a6514c09cf7ca819f84e38c6419a310 Reviewed-by: David Schulz <david.schulz@qt.io>
* | AutoTest: Support gathering failed testsChristian Stenger2020-09-1616-4/+276
| | | | | | | | | | | | | | | | Mark test tree items as failed for the last run to be able to re-run them in an easier way. Change-Id: I7ea3dcd16e5a02797d41f13e02b2fa95b857cf5e Reviewed-by: David Schulz <david.schulz@qt.io>
* | AutoTest: Fix compile on UNIXChristian Stenger2020-09-161-1/+1
| | | | | | | | | | | | Change-Id: I658fc0cf9ec0ec3dfd24bcd53e0a01c29989ea9c Reviewed-by: David Schulz <david.schulz@qt.io> Reviewed-by: Oliver Wolff <oliver.wolff@qt.io>
* | AutoTest: Enhance run and debug from results paneChristian Stenger2020-09-155-1/+74
| | | | | | | | | | | | | | | | | | So far, only Qt and Google test had support for triggering a run or debug of a corresponding test case given by a test result. Add the same support for Boost and Catch as well. Change-Id: I45a4416f32be22f40b7e14dfb6c08bda310a9eb3 Reviewed-by: David Schulz <david.schulz@qt.io>
* | Autotest auto tests: Fix licenseKai Koehne2020-09-112-18/+30
| | | | | | | | | | | | | | No point in using a commercial-only license here. Change-Id: Ic8f38c4a09dcfaf6c1a537bdfd97cb9eedf50dd8 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* | Merge remote-tracking branch 'origin/4.13' into masterEike Ziller2020-08-213-6/+7
|\| | | | | | | | | | | | | Conflicts: CMakeLists.txt Change-Id: I799060da2cb299bb0c49a3da3530fad18427a23c
| * AutoTest: Fix persisting of check statesChristian Stenger2020-08-193-6/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Persistent settings cannot handle QVariantHash and when reading the check state the meta type system seems to have the need to have used the check state already before, otherwise it will fail to convert until it uses it. This happened e.g. when re-opening a project that had former check states stored inside the project settings directly from the Welcome page after starting QC. Amends df49d6e40df47. Change-Id: Id2b85373c151efb5890fe5fb7392bdbc11adda50 Reviewed-by: Eike Ziller <eike.ziller@qt.io> Reviewed-by: David Schulz <david.schulz@qt.io>
* | AutoTest: Fix compilation with Qt6hjk2020-08-201-1/+1
| | | | | | | | | | | | Task-number: QTCREATORBUG-24098 Change-Id: I40b51e02fbb90b059d3cad16a57b70e463e6465d Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* | Merge remote-tracking branch 'origin/4.13' into masterEike Ziller2020-08-1012-46/+131
|\| | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: cmake/QtCreatorIDEBranding.cmake qbs/modules/qtc/qtc.qbs qtcreator_ide_branding.pri src/plugins/cmakeprojectmanager/cmakebuildstep.cpp src/plugins/cmakeprojectmanager/cmakebuildstep.h tests/auto/debugger/tst_namedemangler.cpp tests/auto/qml/codemodel/check/tst_check.cpp Change-Id: Iefd5f71c03c0078513b76a92af764a4fb22ee4c2
| * AutoTest: Display relative path for file nodesChristian Stenger2020-08-101-2/+15
| | | | | | | | | | | | | | | | | | | | | | Using the full path for the file nodes may be quite long depending on the location of the project. Display its name relative to the project directory or the parent group node instead. Fixes: QTCREATORBUG-24374 Change-Id: I4ce57a0940008d99c51e63c2265a371a0ffe20ef Reviewed-by: David Schulz <david.schulz@qt.io>
| * AutoTest: Fix possible crashChristian Stenger2020-08-101-1/+2
| | | | | | | | | | | | | | | | | | Do not access list items if there are none. Amends 502ad9badb731. Fixes: QTCREATORBUG-24421 Change-Id: I2982f675bba36eac98cb116acf64472a9f415977 Reviewed-by: hjk <hjk@qt.io>
| * AutoTest: Fix auto expansion of test resultsChristian Stenger2020-07-161-1/+4
| | | | | | | | | | | | | | | | We may add items that have sub-items already, so apply the expansion to them as well if necessary. Change-Id: Ibff4433c5a7c0a110461e46998cd39864f4ec929 Reviewed-by: David Schulz <david.schulz@qt.io>
| * AutoTest: Persist check state to project settingsChristian Stenger2020-07-139-42/+110
| | | | | | | | | | | | | | | | | | Make it easier to switch between projects and restore the former check states of the found test items if we have these information. Change-Id: I99a5357388c36aa8cce6f5f82184d6ab2a8bf6e8 Reviewed-by: David Schulz <david.schulz@qt.io>
* | Utils: Drop Utils::SkipEmptyParts againhjk2020-07-216-8/+8
|/ | | | | | | | We require Qt 5.14 nowadays. Change-Id: Iff245257d3cb19207007c0445ee13814e66152dd Reviewed-by: Orgad Shaneh <orgads@gmail.com> Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* AutoTest: Correct completing test run configurationChristian Stenger2020-07-102-12/+11
| | | | | | | | | | | | | Ensure all possible project parts are taken into account when gathering build system targets. When having multiple possible build system targets for a test - which may easily happen e.g. when defining tests beside the main application inside a big top-level CMakeLists.txt - let the user decide which one to run. Fixes: QTCREATORBUG-24268 Change-Id: Ia7b7e4148fe8e8dab55832c435f12cc78f5c2f7a Reviewed-by: David Schulz <david.schulz@qt.io>
* AutoTest: Fix wrong caching of text layoutChristian Stenger2020-07-102-1/+4
| | | | | | | | | The text layout must get recalculated also when the width of the underlying model index has changed. Fixes: QTCREATORBUG-24236 Change-Id: I4ded56832c765320b6845cf35ad61453875dad50 Reviewed-by: David Schulz <david.schulz@qt.io>
* Autotest: Introduce ItemDataCacheDavid Schulz2020-07-074-49/+57
| | | | | Change-Id: Icbd703a8ddd3c5dea4a90d2c32c1866764bc0267 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* AutoTest: Align file and line information of sub-itemsChristian Stenger2020-07-071-18/+9
| | | | | | | | Avoid displaying the file and line information inverse-cascaded and fix initialization of the internal layout positions. Change-Id: Ic9493741c58ece6074f659de110c9cabadafe7d6 Reviewed-by: David Schulz <david.schulz@qt.io>
* Core/Utils: Migrate further to Utils::Idhjk2020-07-0627-50/+51
| | | | | | | | The coreplugin/id.h header is kept for downstream for now. Change-Id: I8c44590f7b988b3770ecdc177c40783e12353e66 (cherry picked from commit 430a33dcd9ac80ddb848e41f8f059102857c88aa) Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Wizards: Update templates in regard to deprecation warningsChristian Kandeler2020-06-301-9/+1
| | | | | | | | | | | The QT_DEPRECATED_WARNINGS macro has no effect anymore, so let's remove it along with the huge chunk of comments that took up an inordinate amount of space in the resulting project file. The concise comment for the QT_DISABLE_DEPRECATED_BEFORE macro is perfectly sufficient. Fixes: QTCREATORBUG-24244 Change-Id: I549c16c2c037bb64c2833e4807047ab3a8b2103f Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* AutoTest: Fix crash on shutdownChristian Stenger2020-06-181-1/+1
| | | | | | | Amends b402215daf4165d363b3dfd03347e7c8a673e033. Change-Id: I4b5812af6e1ad86e5ddaaa20483a226f0a5c6036 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* AutoTest: Cache expanded state as wellChristian Stenger2020-06-183-2/+52
| | | | | | | | | | | | | Parsing may end up with incomplete information when parsing documents that are currently edited and contain syntax errors due to incomplete changes. This resulted in not re-adding all items which in turn led to lose also its expanded state when re-adding it in a later successful parse. Avoid the need to expand manually again and again by caching the expanded state for a couple of re-parses. Change-Id: I2994b9c7ab56c0c76f416d10247e68dea271cd10 Reviewed-by: David Schulz <david.schulz@qt.io>
* AutoTest: Restore former check state on reparseChristian Stenger2020-06-184-3/+46
| | | | | | | | | | | | | | | | When reparsing while modifying a file it can happen that the parse failed for some reason or did not provide full information due to syntax errors the code model cannot cope with. This in turn can purge items from the test tree. Re-adding the items in a later reparse had just added the item and did not take care of (former) check states. Add simple caching mechanism to keep track of check states and use them if available. Task-number: QTCREATORBUG-24099 Change-Id: I3ca04f5fd58810df71582972e6fe96a00cfc48f1 Reviewed-by: David Schulz <david.schulz@qt.io>
* Move Id from Core to UtilsEike Ziller2020-06-185-12/+5
| | | | | | | | | | | | | | | | And add a compatibility wrapper for Core::Id, so we don't have to rename all occurrences from Core::Id to Utils::Id. This allows us to use Id also in Utils, which makes it possible to e.g. move Core::InfoBar to Utils without work arounds. Change-Id: I5555d05b4e52f09d501dbfe5d91252a982a97c61 Reviewed-by: Marco Bubke <marco.bubke@qt.io> Reviewed-by: Orgad Shaneh <orgads@gmail.com> Reviewed-by: David Schulz <david.schulz@qt.io> Reviewed-by: hjk <hjk@qt.io> Reviewed-by: Alessandro Portale <alessandro.portale@qt.io> Reviewed-by: André Hartmann <aha_1980@gmx.de>
* All: Use Utils::SkipEmptyPartshjk2020-06-176-8/+19
| | | | | | Task-number: QTCREATORBUG-24098 Change-Id: Iab45de9a9c17ddc39a0e343b1175d4f6cb94b098 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* Fix plugin unit tests when using projectsChristian Stenger2020-06-172-8/+17
| | | | | | | | | | | | | | The ClangTools and the AutoTest plugins use an internal mechanism to load and configure a project when performing their integrated unit tests. Both assumed to have exactly one kit present for these tests. Make it possible to have more kits present when starting with existing settings or if more kits get automatically generated when starting with clean settings. Change-Id: If2bc66320c4854f1d34a19d17107e8f0b7d64d39 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* AutoTest: performance-for-range-copyAlessandro Portale2020-06-126-7/+7
| | | | | Change-Id: I60e79aec1fe2813867d8ff46cec7d39b848d0020 Reviewed-by: Christian Stenger <christian.stenger@qt.io>