aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/autotest/autotestplugin.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Avoid shortcuts with "Alt" on macOSEike Ziller2018-08-211-5/+9
| | | | | | | | | | On macOS shortcuts with "Alt" are used for entering special characters, where "special" depends on keyboard layout and can mean e.g. '|' or '~'. Task-number: QTCREATORBUG-20873 Change-Id: Ifa70b95381ef48d2ba3b15a528a5dcfe43d53bfd Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
* AutoTest: Silence soft assertChristian Stenger2018-05-231-1/+2
| | | | | Change-Id: I6aa2490971fcf4fbbbbc0bad570406e349029b32 Reviewed-by: David Schulz <david.schulz@qt.io>
* AutoTest: Add action to run all tests from current fileSergey Morozov2018-05-151-0/+33
| | | | | | | | | Run specific test functions since one test case can be implemented in multiple files. Task-number: QTCREATORBUG-20329 Change-Id: I07f435c264f18e9608caa5b7ee20dff2d33ee9c0 Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io> Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* Merge remote-tracking branch 'origin/4.6'Eike Ziller2018-04-131-2/+8
|\ | | | | | | | | | | | | | | | | | | | | Conflicts: src/libs/utils/settingsaccessor.cpp src/plugins/autotest/autotestplugin.cpp src/plugins/git/gitclient.cpp src/plugins/qbsprojectmanager/qbsrunconfiguration.cpp src/plugins/qbsprojectmanager/qbsrunconfiguration.h Change-Id: I65f143cad18af509a2621d6c5925abbd038ea70f
| * AutoTest: Replace expensive function callChristian Stenger2018-04-091-2/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Depending on the underlying project manager it can be pretty expensive calling PE::canRunStartupProject(). AutoTest plugin used this to determine whether its global actions should be enabled or not and updating these actions is triggered for too many causes. Replace this function call by some simple checks that have almost no cost to avoid blocking UI. Task-number: QTCREATORBUG-20175 Change-Id: I0e3cce683f33abe82bf1354ec5276250f5e30068 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* | AutoTest: Add possibility to trigger test run from sourcePawel Rutka2018-03-161-1/+66
| | | | | | | | | | Change-Id: Iceed69747de64d76f34451d41f719c8dbdd81e44 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* | Merge remote-tracking branch 'origin/4.6'Eike Ziller2018-03-011-7/+7
|\| | | | | | | Change-Id: I63f8aebb201936f671b1486ff9420f67e5e3fafc
| * AutoTest: Correct enabled state of context menu itemsChristian Stenger2018-02-281-7/+7
| | | | | | | | | | | | | | | | | | Permanently enable (De)Select All and allow triggering a rescan also if there is a build running. Task-number: QTCREATORBUG-19940 Change-Id: Ia0e8a5da135c3c59aba4ab179ae2970c25d470f3 Reviewed-by: David Schulz <david.schulz@qt.io>
* | AutoTest: Access plugin singleton through static functionsChristian Stenger2018-02-011-7/+2
| | | | | | | | | | | | | | It's the more common pattern nowadays, and cheaper. Change-Id: If6217b2a820fbfa6f088fd9349225f5f8488f593 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* | AutoTest: Avoid global object poolChristian Stenger2018-02-011-3/+6
|/ | | | | | | | Instead of adding internal objects to the global object pool keep them to handle their destruction. Change-Id: Ie6217b2a820fbfa6f088fd9349225f5f8488f593 Reviewed-by: hjk <hjk@qt.io>
* AutoTest: Consolidate handling of global menu itemsChristian Stenger2017-12-191-8/+19
| | | | | Change-Id: I6ad07775d63206864ec330ad87d3b65e5ecaf76c Reviewed-by: David Schulz <david.schulz@qt.io>
* AutoTest: Unify handling of run modesChristian Stenger2017-09-181-2/+2
| | | | | | | | Move used enums more central to avoid duplicating information and unify their usages. Change-Id: I33e9bdc11f7da16ecabf03991b5a5f550a53bdad Reviewed-by: Oliver Wolff <oliver.wolff@qt.io>
* Drop unused variables and lambda capturesUlf Hermann2017-09-081-1/+1
| | | | | | | | | Also, add context to connect() expressions where we are or were capturing "this". Change-Id: I6e006ba6f83d532478018550d148ee93eca59605 Reviewed-by: Tim Jenssen <tim.jenssen@qt.io> Reviewed-by: hjk <hjk@qt.io>
* AutoTest: Avoid triggering run tests while buildingChristian Stenger2017-06-191-3/+11
| | | | | | | | Disable respective actions while a build is running to avoid strange side-effects or race conditions. Change-Id: Ifc8d1c9fc9fd4d705cabd148b145708e23029dba Reviewed-by: David Schulz <david.schulz@qt.io>
* AutoTest: Ensure that removing and adding qml files is noticedChristian Stenger2017-03-071-2/+3
| | | | | | Task-number: QTCREATORBUG-17805 Change-Id: I068f6925fc39813a504205c4ef8e8b9f9e911189 Reviewed-by: David Schulz <david.schulz@qt.io>
* AutoTest: Modernize codeChristian Stenger2017-02-171-3/+3
| | | | | | | | | | * remove unnecessary QLatin1String where possible * foreach * nullptr * bad naming of static members Change-Id: If0f7c6839be4d2efbfef6f7f0775d2034775bd90 Reviewed-by: David Schulz <david.schulz@qt.io>
* AutoTest: Always parse if plugin is enabledChristian Stenger2016-12-121-3/+0
| | | | | | | | | | Remove the 'Always parse' setting and respective special handling. This simplifies the handling of parsing for tests and removes strange special handling that was introduced in earlier versions and led more to confusion on the user side. Change-Id: Ia4d122ed448244f3cb3876dda9930864afde9c28 Reviewed-by: David Schulz <david.schulz@qt.io>
* AutoTest: Fix handling of enabled state for code parserChristian Stenger2016-11-141-0/+1
| | | | | | | | | | | Avoid unintentional re-enabling of the code parser. Handling of the enabled state broke several times before, therefore separate it from other states of the parser to avoid breaking it again when not taking enough care while refactoring or adding features related to states. Change-Id: If1eb0dd649225f10bfc3bf06f09851649da75983 Reviewed-by: David Schulz <david.schulz@qt.io>
* AutoTest: Fix enabled state of global Tests menuChristian Stenger2016-10-261-0/+1
| | | | | | | | | If tests are running the Tests menu's (current) items are all disabled which led to having the menu disabled as well. Ensure to have the menu enabled regardless the sub items' state. Change-Id: I561f1eb75637f03a27df012129455e06be38ea87 Reviewed-by: David Schulz <david.schulz@qt.io>
* AutoTest: Move framework settings into framework managerChristian Stenger2016-10-101-1/+1
| | | | | Change-Id: I9914291adb102de5136802eb3b6d12afb6276538 Reviewed-by: David Schulz <david.schulz@qt.io>
* AutoTest: Cancel possible running tasks on shutdownChristian Stenger2016-07-151-0/+1
| | | | | | | | | If tasks are running while shutting down we might end up in a crash, so cancel all tasks and handle possible invalid accesses of the current running processing. Change-Id: I69f7cac5f44390e322fa301af6d6794270c95c2a Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* AutoTest: Add minimum support for debugging testsChristian Stenger2016-06-221-2/+2
| | | | | | | | | | This adds another context menu entry for items on the test tree to allow debugging of a single test. Task-number: QTCREATORBUG-16070 Change-Id: I98f56b0f22c94ad71f0b91d690383043ed27f1c7 Reviewed-by: hjk <hjk@theqtcompany.com> Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
* AutoTest: Introduce active state for test frameworksChristian Stenger2016-06-141-1/+2
| | | | | | Change-Id: I0fddce91a239c0a51352a25e34a221fd8880b733 Reviewed-by: David Schulz <david.schulz@theqtcompany.com> Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
* AutoTest: Add test frame work handlingChristian Stenger2016-06-091-5/+12
| | | | | | | Mainly a preparation for enabling/disabling test frame works. Change-Id: I0bbea7e055a607517ef8193587c229cadf0de027 Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
* AutoTest: Add Id to parsers and remove now useless enumChristian Stenger2016-06-071-1/+0
| | | | | | | Preparation for introducing test frameworks. Change-Id: Iefaa4ca9dd9af665444556afa9c6e326041cfd0f Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
* AutoTest: Provide setting to outvote automatically disabling parserChristian Stenger2016-02-031-0/+3
| | | | | | | | | | | Test parser is normally disabled as long neither test tree nor results pane is opened. The new setting allows the user to enable the parser without the need to have one of these widgets opened. Task-number: QTCREATORBUG-15669 Change-Id: I354e1a3cb91eeca2302f2344fd443c81c4b15406 Reviewed-by: Leena Miettinen <riitta-leena.miettinen@theqtcompany.com> Reviewed-by: Niels Weber <niels.weber@theqtcompany.com>
* AutoTest: Add an accelerator to menu entryOrgad Shaneh2016-01-251-1/+1
| | | | | Change-Id: I8e94912fdbdf1f0dbd7366e96222d04f6c838586 Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
* Delete unneeded and prepare directory structure...Christian Stenger2016-01-221-0/+184
...to get plugin's repository more easily integrated into QC's repository. Change-Id: I10243bb4283623ae951e799feacaa15915678e04 Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>