summaryrefslogtreecommitdiff
path: root/plugins/autotest
Commit message (Collapse)AuthorAgeFilesLines
* Trigger parse when project parts have been updatedChristian Stenger2015-04-093-0/+10
| | | | | Change-Id: I8b81bd91671b3d855c617c63185baa2951a55e6e Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
* Change ui string to avoid confused usersChristian Stenger2015-04-081-1/+1
| | | | | Change-Id: I431de718d01e454bb55216afd5d0ca792fa69677 Reviewed-by: Riitta-Leena Miettinen <riitta-leena.miettinen@theqtcompany.com>
* Allow filtering of test results alwaysChristian Stenger2015-04-024-21/+6
| | | | | | | This almost reverts 8bb03409353be640a18b58dd80e1bb67f96f13fe. Change-Id: I57ac2e1dd052ce434f7381f4d6df52ecdc68fed6 Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
* Autotest: edit UI text and messagesLeena Miettinen2015-03-316-35/+34
| | | | | | | | Fix capitalization, punctuation, and grammar issues. Change-Id: Ie5044a1a3445ea078fe52ae20b1b4eec747e3de4 Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
* Add shortcuts to Run Tests optionsChristian Stenger2015-03-305-32/+60
| | | | | | Change-Id: Ia738420baeb51940865c59b66908068c85d658c1 Reviewed-by: Riitta-Leena Miettinen <riitta-leena.miettinen@theqtcompany.com> Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
* Fix parser state handling...Christian Stenger2015-03-301-0/+9
| | | | | | | | ...especially state transitions that may happen while project files are evaluated or source files are parsed. Change-Id: Iceef38500b6d6a4deb430738e5e960077f8eb39a Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
* Fix results output for long outputChristian Stenger2015-03-301-23/+15
| | | | | | | | | | | | For non-selected output use elided text if necessary and for selected add additional line breaks to make sure the text fits into the width of the output area. Additionally removed different style of lines coming after the first one as it does not make sense at all. Change-Id: Ifdd8cb076151ce3e0d895c702921d8f4d2a2b15a Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
* Fix scroll behavior of results paneChristian Stenger2015-03-301-0/+1
| | | | | | | | | For long output it should be possible to scroll across the output instead of scrolling itemwise and being never capable to view the bottom of the output. Change-Id: Ia3478932894fc0b08e10466ec987f12295e9fff5 Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
* Fix unexpected parser state when parsing finishesChristian Stenger2015-03-091-1/+4
| | | | | | | | | | | While parsing test code it might happen that the user closes all related widgets and so the parser falls into the state Disabled. This was unexpected and did print a warning. Now this case is somewhat expected and won't print a warning anymore. Change-Id: I0082bdc31f6ed351cf1dbd7b34da2f5672aee3dd Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com> Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
* Move variable declaration into using blockat-v3.4.0-beta1Christian Stenger2015-03-031-1/+1
| | | | | Change-Id: Ibf5f5fd825b7beb2bb6b607c8b822b4dfeebfda5 Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
* Fix removing unnamed quick tests...Christian Stenger2015-03-033-15/+12
| | | | | | | | | ...this was wrong especially when closing (the last) open project that contained unnamed quick tests. Change-Id: I6d030b6219d9f397a6ffb51a985ef4147eebec8a Reviewed-by: David Schulz <david.schulz@theqtcompany.com> Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
* Fix possible null-pointer accessChristian Stenger2015-03-031-0/+2
| | | | | Change-Id: I609828b4656c00c1c358759f0c844ecb23157b8b Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
* Fix names of local variablesChristian Stenger2015-02-271-3/+3
| | | | | Change-Id: I853ad97ff54d28714263f1431838dbe8d71f2fe2 Reviewed-by: Oliver Wolff <oliver.wolff@theqtcompany.com>
* Fix camel-case of *postponed*Christian Stenger2015-02-272-50/+50
| | | | | Change-Id: Ie00c35bceba3b772f68e2d9b665af8427a105433 Reviewed-by: Oliver Wolff <oliver.wolff@theqtcompany.com>
* Remove useless memberChristian Stenger2015-02-272-9/+7
| | | | | | | | | No need to have another member variable for almost the same functionality. Consolidated where necessary. Change-Id: Iefaa410fea527f88b18b406199a449fc9e4d0533 Reviewed-by: Oliver Wolff <oliver.wolff@theqtcompany.com> Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
* Improve handling of disabled parser and re-enabling parserChristian Stenger2015-02-274-43/+36
| | | | | | | | | | | Instead of always parsing again when re-enabling parser do it only if there are changes of the current project. If the current project has not changed since last parsing just rely on the cached information. Change-Id: I7681318132f37172730648604ddbecf1cd37d177 Reviewed-by: Oliver Wolff <oliver.wolff@theqtcompany.com> Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
* Compile fix: Add missing includesTobias Hunger2015-02-263-0/+6
| | | | | Change-Id: Ie93829eb73888646fcfd76746cd74bd7c1b09924 Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
* Fix copyright headersChristian Stenger2015-02-1953-212/+264
| | | | | Change-Id: If02fedb7c191492ddfaf2eb34e74fcdb7a007c94 Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
* Add qbs project file.Christian Kandeler2015-02-181-0/+80
| | | | | Change-Id: I36368fa8c5478bc688819ea23152f8272ff5cfa9 Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
* Fix include type.Christian Kandeler2015-02-181-1/+1
| | | | | Change-Id: Ibf9e205c3b2faf46216043c9061209cb29c13b04 Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
* Fix compileChristian Stenger2015-02-181-1/+1
| | | | | Change-Id: I98c609dde6a48628561beca969ccd108361758dc Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
* Display progress indicator on navigation view...Christian Stenger2015-02-184-1/+40
| | | | | | | ...if parsing takes longer. Change-Id: Ib311c031ae0af72b2f923d93578099687d9af91a Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
* Try to guess run configuration if none is explicitly setChristian Stenger2015-02-178-230/+309
| | | | | | | | Additionally provide a setting to not display warnings regarding using a guessed run configuration. Change-Id: Ia7647f55e5085ffc84044281c5107770cd30d504 Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
* Clean up pluginChristian Stenger2015-02-176-35/+8
| | | | | Change-Id: I695adb992f4d1f32f266f1628f2094e4bcc81485 Reviewed-by: Andre Poenitz <andre.poenitz@theqtcompany.com>
* Perform parsing asynchronously...Christian Stenger2015-02-179-71/+166
| | | | | | | | | ...to avoid blocking the ui thread. Parsing will now performed in a separate thread, except for small changes where this would create too much overhead. Change-Id: I1db441594f1684f969bb86c9423c0fb0bcb1a53a Reviewed-by: Andre Poenitz <andre.poenitz@theqtcompany.com>
* Enable and disable parser on demandChristian Stenger2015-02-178-29/+109
| | | | | | | | | | | | | The new approach enables the parser as soon the Tests navigation widget or the Tests results pane is visible. If none is displayed parsing will be disabled. This additionally fixes an issue of not parsing a project when having a project opened already before triggering the first Tests navigation widget to become visible. Change-Id: I7163268d405e07e85814097d65ff34790a98a3d1 Reviewed-by: Andre Poenitz <andre.poenitz@theqtcompany.com>
* Rework parsing and provide unit testChristian Stenger2015-02-1738-18/+1108
| | | | | | | | | | Handling of parsing has slightly changed. The parser now uses simple states to be capable of postponing triggered parses if there is already a parsing in progress. Furthermore the parser now waits for the current project to be completely scanned. Change-Id: I6d4968d28194ba8d23d3a0ee6ab454d81a549e67 Reviewed-by: Andre Poenitz <andre.poenitz@theqtcompany.com>
* Fix re-parsing of tests...Christian Stenger2015-02-161-13/+13
| | | | | | | ...for code split up into header and source. Change-Id: I8f1bf01e6ff6f88afc1e054318cd384b5f231eb6 Reviewed-by: Andre Poenitz <andre.poenitz@theqtcompany.com>
* Decouple code parser and modelChristian Stenger2015-02-167-346/+366
| | | | | | | Additionally some minor refactorings to increase readability. Change-Id: I0be120fcedcf31dbb0116d84f0d3c23cf95e7d91 Reviewed-by: Andre Poenitz <andre.poenitz@theqtcompany.com>
* Fix wrong behavior for gathering test configurationChristian Stenger2015-02-161-6/+6
| | | | | | | | | | If the current project mixed named and unnamed Quick tests determing the test configuration failed due to running into the assert if you had no auto tests for the current project selected as well. Change-Id: I5c98316fada704cd7e021becab897d168a19b99b Reviewed-by: Andre Poenitz <andre.poenitz@theqtcompany.com>
* Fix detection of tests on OSXChristian Stenger2015-02-161-4/+17
| | | | | Change-Id: I662afadd17bd8b2f1fbc9269dc470430e871e582 Reviewed-by: Andre Poenitz <andre.poenitz@theqtcompany.com>
* Fix compile warningChristian Stenger2015-02-161-2/+1
| | | | | Change-Id: Ib98f444baa1c35e038921b4e25927faee64f0877 Reviewed-by: Andre Poenitz <andre.poenitz@theqtcompany.com>
* Fix modifyContent() to take type in account as wellChristian Stenger2015-02-161-0/+4
| | | | | Change-Id: I1a4aeb10243afc5514330fceb3f502d9ea4432d1 Reviewed-by: Andre Poenitz <andre.poenitz@theqtcompany.com>
* Compile fix with current qtbase/devAndré Pönitz2015-02-161-0/+1
| | | | | Change-Id: I6fdb6429e8509468b7a710414af250ea6464d92d Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
* Refactor TestCodeParserChristian Stenger2015-02-054-290/+333
| | | | | Change-Id: I5fdb6429e8509468b7a710414af250ea6464d92d Reviewed-by: Tim Jenssen <tim.jenssen@theqtcompany.com>
* Avoid crash when using wrongly created test treeChristian Stenger2015-02-051-8/+11
| | | | | Change-Id: I686f0cf285daeb3889161109964efd6e9ac47a40 Reviewed-by: Tim Jenssen <tim.jenssen@theqtcompany.com>
* Fetch current project always before accessingChristian Stenger2015-01-282-33/+24
| | | | | | | | | This fixes two different crashes when TestCodeParser tried to access m_currentProject, but the object this pointer was referencing had been deleted already. Change-Id: Ie59e027394e613a8ef1e4f32f97abed6e8cb007a Reviewed-by: Tim Jenssen <tim.jenssen@theqtcompany.com>
* Make sure to get output on Windows when using Qt5.4 or higherChristian Stenger2015-01-271-0/+2
| | | | | Change-Id: Id69636f5a48f5423217c47c039d4522ef42cd2a3 Reviewed-by: Tim Jenssen <tim.jenssen@theqtcompany.com>
* Re-enable printing of NAN for execution timeChristian Stenger2015-01-211-2/+2
| | | | | Change-Id: I50bfd95808c90a30501bdf32f484dd035cc2f30b Reviewed-by: Tim Jenssen <tim.jenssen@theqtcompany.com>
* fix that windows can find the fileTim Jenssen2015-01-211-1/+2
| | | | | | | added missing .exe file suffix Change-Id: I537736a95de778e0a498c37d21baf0d717eb8c4d Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
* introduce testxmloutputreaderTim Jenssen2015-01-214-269/+366
| | | | | Change-Id: I5a77e8fd629343bc059a03e6c27f45103b96101a Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
* refactor if clauseTim Jenssen2015-01-211-11/+10
| | | | | Change-Id: I3ce6e711392f35c89dfcbecc3c8fcb8aca293602 Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
* refactor performTestRunTim Jenssen2015-01-211-55/+39
| | | | | | | | | | On windows we are only interested in .exe files. For example QProcess("test.cmd") does not work. renamed which to executableFilePath Change-Id: Ib9aa2d011c3d0525b618a1b0a6bd32b556c02010 Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
* avoid abbreviations in variable namesTim Jenssen2015-01-141-47/+47
| | | | | Change-Id: Ie9474da2a4c9c2e461bdd15e859e1a53f820a1d1 Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
* remove static variable testRunnerTim Jenssen2015-01-143-40/+35
| | | | | Change-Id: I07dbde221632ec0aeca758f684c8ada2c71f3969 Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
* merge performTestRun and performExecTim Jenssen2015-01-141-59/+52
| | | | | | | | This is a preparation for later refactoring. Also moved the get settings values outside from the threaded code. Change-Id: I0acceece4bc55a453880f4235e02a5712443b32d Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
* variables as complete words are betterTim Jenssen2015-01-121-21/+20
| | | | | Change-Id: If433c621466f2e1160a016d2b7b2539e4dc8b3d6 Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
* don't pollute the Autotest namespace with an enumTim Jenssen2015-01-127-160/+162
| | | | | Change-Id: Ic6c3e3beaba15e83c8524394ccc6a1953e76d59a Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
* use variable instead of anonymous "false"Tim Jenssen2015-01-091-2/+4
| | | | | Change-Id: I4ca2f7d82e70306ffae50d5eea31357e9fcfd0aa Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
* fix warning that "pep" is initialized but not referencedTim Jenssen2015-01-091-4/+3
| | | | | Change-Id: I1f12323e1de481f800fcf835a12213059b72bfd4 Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>