summaryrefslogtreecommitdiff
path: root/src/plugins/autotest/quick/quicktesttreeitem.h
Commit message (Collapse)AuthorAgeFilesLines
* AutoTest: Use Utils::FilePath for files and directoriesChristian Stenger2021-05-271-4/+4
| | | | | | | | Still some missing bits as some QString members had different meanings depending on their context. Change-Id: Ib48eab54498974a26bbd5123cbffeefee5f7e79c Reviewed-by: hjk <hjk@qt.io>
* AutoTest: Free TestTreeItem from CppTools dependencyBernhard Beschow2021-04-121-1/+0
| | | | | | | | | | | | | Makes TestTreeItem programming language agnostic. By moving the "query" methods to CppTools, the cohesion within these methods is improved, i.e. information crosses the AutoTest <-> CppTools border fewer times. Furthermore, it allows the CppTools plugin to see how its data is being used, allowing it to optimize its queries behind the scenes. Change-Id: I0a60140abaca1193d500605dfa2812b4d937d94c Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* AutoTest: Improve type safety in TestTreeItemBernhard Beschow2021-02-041-2/+2
| | | | | | | Ensures that the static_cast<>() in framework() always succeeds. Change-Id: I6aff0cf12a565bd6f9791c67979698729d7143e5 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* AutoTest: Introduce ITestConfigurationChristian Stenger2020-11-161-6/+6
| | | | | | | | Preparation for an additional simpler test configuration which needs to have the same common base. Change-Id: I1800ed5d7301f1aea99eba6ef588a204697bd569 Reviewed-by: David Schulz <david.schulz@qt.io>
* AutoTest: Introduce ITestTreeItemChristian Stenger2020-11-161-1/+1
| | | | | | | | Preparation for having separated test tree items with a common base. Change-Id: I3735f582cc96910e971f5a41c799cc0729a10a58 Reviewed-by: David Schulz <david.schulz@qt.io>
* AutoTest: Use base of framework inside TestTreeItemChristian Stenger2020-11-091-2/+2
| | | | | | | | ...and respectively inside the parse results which hold the information that are used to create the items. Change-Id: I78f7b5632df5d449d39fa03ffbf48036a138e337 Reviewed-by: David Schulz <david.schulz@qt.io>
* AutoTest: Support gathering failed testsChristian Stenger2020-09-161-0/+1
| | | | | | | | 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: Keep track of generating framework in TestTreeItemhjk2020-03-271-2/+6
| | | | | | | | ... and TestConfiguration. This allows dropping code that reconstruct framework ids and framework lookup by id. Change-Id: I0bb1e6e135376e21f96b9fab7971aa097787e483 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* AutoTest: Fix warning about type mismatchChristian Stenger2019-08-231-1/+1
| | | | | Change-Id: If4b0f2171eafc81330acb8a544201f0d05a9f6ae Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* AutoTest: Fix handling of unnamed QuickTestsChristian Stenger2019-08-221-0/+2
| | | | | | | | | | | | ..now that the parser understands multiple TestCase items inside a single qml file. As long a test function is located inside a different TestCase it is considered as a different one, so treat test functions even of unnamed test cases correct. Change-Id: I5cbfe1f63f896317523d51bbf67ea59169481a71 Reviewed-by: Christian Stenger <christian.stenger@qt.io> Reviewed-by: David Schulz <david.schulz@qt.io>
* AutoTest: Fix parsing of multiple test cases in single qml fileChristian Stenger2019-07-301-0/+2
| | | | | | | | | Quick tests allow definition of more than one TestCase inside a qml file and even nesting is possible, so support this correctly. Fixes: QTCREATORBUG-22761 Change-Id: I65fcc7cd6063d976d798c3e900d3299a12e2d73f Reviewed-by: David Schulz <david.schulz@qt.io>
* Utils: Rename FileName to FilePathhjk2019-05-281-1/+1
| | | | | | | | More in line with QFileInfo terminonlogy which appears to be best-of-breed within Qt. Change-Id: I1d051ff1c8363ebd4ee56376451df45216c4c9ab Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* AutoTest: Fix and unify handling of group nodesChristian Stenger2018-08-071-0/+1
| | | | | | | | | | | | | QtTest had been forgotten to handle correctly as well. So, it was possible to have several levels of grouping which had not been handled correctly. By (current) definition we handle only one level of grouping, so prohibit more for QtTest tree items as well. Basically move the check into a separate function and use this beforehand instead of creating a nullptr. Change-Id: Icbf02eae67e89464f371eb349eecf2976636d05f Reviewed-by: David Schulz <david.schulz@qt.io>
* AutoTest: Fix handling of cpp files for Quick testsChristian Stenger2018-07-111-0/+1
| | | | | | | | | | | | | | | | Modifying C++ files of Quick tests had been ignored as they normally have little impact. But nevertheless this behavior is wrong and could lead to unexpected behavior later on if no complete rescan had been done and even with a rescan there could have been some cached artifacts. Fix this by tracking the paths of the C++ files that hold the main() or the respective macro to be able to handle changes of these files correctly as well. Task-number: QTCREATORBUG-20746 Change-Id: Iec860aa63ffd167511efdbf63a6ffa369f094edf Reviewed-by: David Schulz <david.schulz@qt.io>
* AutoTest: Add action to run all tests from current fileSergey Morozov2018-05-151-0/+1
| | | | | | | | | 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>
* AutoTest: Avoid unneeded duplication on rebuildChristian Stenger2018-04-161-0/+1
| | | | | | | | | | | | | | When the rebuild of the tree model has been triggered due to switching between grouping by filter or directory it could happen that some children did not get merged into others due to (insignificant) differences. Avoid this visual duplication by finding items similar to the one to be added and if there is one re-use this instead. Change-Id: Ife49593638e0af23ffc7353e305be4ea25eb2180 Reviewed-by: Christian Stenger <christian.stenger@qt.io> Reviewed-by: David Schulz <david.schulz@qt.io>
* AutoTest: Provide possibility to copy tree itemsChristian Stenger2018-04-111-0/+1
| | | | | | | | | This allows to create a copy of an item. Basically it will copy its member objects, but it does not copy its children. Preparation for extending grouping support for GTest. Change-Id: I75f92be53ff4191cacea2944b31641a9292d1e58 Reviewed-by: David Schulz <david.schulz@qt.io>
* AutoTest: Ensure removal of empty items if possibleChristian Stenger2018-01-261-0/+1
| | | | | Change-Id: I2cac91e56e8f22f89f88bbc82cc5f7b526500529 Reviewed-by: David Schulz <david.schulz@qt.io>
* AutoTest: Allow grouping of test casesChristian Stenger2018-01-151-0/+2
| | | | | | | | | | Grouping of test cases can now get enabled for each registered framework. For now grouping happens only folder based. Task-number: QTCREATORBUG-17979 Change-Id: Ic0e5c0ecc76998a1aedea8aa0845f6d9b53fb179 Reviewed-by: David Schulz <david.schulz@qt.io>
* AutoTest: Enable debugging for Quick TestsChristian Stenger2017-10-091-0/+2
| | | | | | Task-number: QTCREATORBUG-18961 Change-Id: I6f00c84ea6279ceb59745e5bb12349511ae4637b Reviewed-by: David Schulz <david.schulz@qt.io>
* AutoTest: Fix handling of multiple build targetsChristian Stenger2017-06-191-1/+1
| | | | | | | | | | | | | If project files are not mapped 1:1 to targets the result of the chosen executable was more or less random. Try to handle multiple targets as correct as possible by checking for build targets already where we still know which files are part of the respective test cases. Task-number: QTCREATORBUG-17783 Task-number: QTCREATORBUG-18357 Change-Id: I82dcc26bf52c9918e2727b439a719af08879ef49 Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
* AutoTest: Remove unnecessary indirection when creating test tree itemsChristian Stenger2017-01-121-2/+0
| | | | | Change-Id: Id4648196011b6769a2cd51b4daee146068272f00 Reviewed-by: David Schulz <david.schulz@qt.io>
* AutoTest: Modernize code a bitChristian Stenger2016-09-291-2/+2
| | | | | Change-Id: Ie56f6e5cb8a4f1962bd8df5e57214911ae609921 Reviewed-by: David Schulz <david.schulz@qt.io>
* AutoTest: Move test framework related code...Christian Stenger2016-06-011-0/+56
...into files and respective sub folders. Change-Id: Ic80d693bd73993a6e74b6d422349e47276e8cb6e Reviewed-by: David Schulz <david.schulz@theqtcompany.com>