summaryrefslogtreecommitdiff
path: root/src/plugins/autotest/quick/quicktestparser.cpp
Commit message (Collapse)AuthorAgeFilesLines
...
* Merge remote-tracking branch 'origin/4.3'Orgad Shaneh2017-06-201-2/+47
|\ | | | | | | Change-Id: I126f3a05212a3d5df78812e66285bc9e8078360b
| * AutoTest: Avoid full rescans if not necessaryChristian Stenger2017-06-131-2/+47
| | | | | | | | | | | | | | | | | | | | | | | | | | The file system watcher triggers way too often as it acts not only for removal or addition of files, but for any change like mtime or similar. Doing always a full rescan is painful, so limit this as much as possible to the files that have changed. Task-number: QTCREATORBUG-18315 Change-Id: Iba4705ff58c34e998d8cf1b40761758c6fd65680 Reviewed-by: David Schulz <david.schulz@qt.io> Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* | AutoTest: Remove not needed codeChristian Stenger2017-05-191-1/+2
|/ | | | | | | | | As this functionality had been simplified GTest* classes had been ignored. Continue the simplification and finally remove now useless code and file. Change-Id: I89170cd5f05bb93bf30a05fdbf5370012bc9741a Reviewed-by: David Schulz <david.schulz@qt.io>
* AutoTest: Avoid dead-lock of file system watcherChristian Stenger2017-03-211-20/+19
| | | | | | | | | | Calling addPath() on the watcher could dead-lock on some operating systems as we were in an asynchronous process. Avoid calling addPath() from inside an asynchronous process and perform this call from synchronous context. Change-Id: I94cd401e12ccbb3526b8cc4232a9cff7ed552bbb Reviewed-by: David Schulz <david.schulz@qt.io>
* AutoTest: Fix handling of subtyping TestCase againChristian Stenger2017-03-161-5/+4
| | | | | | | | | | | | | We need a more present snapshot when inspecting the AST of QML files we need to process. Due to handling all problematic accesses inside the QmlJS model by guarding it with mutexes it is no problem even when parsing multi threaded. The former fix collided with another patch and therefore went in without fixing the issue. Task-number: QTCREATORBUG-17787 Change-Id: I460bae4b09cdc9a0cd38bc3383fd593c3abdfaad Reviewed-by: Marco Benelli <marco.benelli@qt.io>
* AutoTest: Handle sub-typed TestCases correctlyChristian Stenger2017-03-141-4/+8
| | | | | | | | | Furthermore ensure that TestCase is really the Qml type to avoid handling self-defined types as Quick Tests. Task-number: QTCREATORBUG-17787 Change-Id: I08a6c70c3c166eefec6f24669cc225f568e51c7a Reviewed-by: Marco Benelli <marco.benelli@qt.io>
* QmlJS: Allow forced rescan on already known pathsChristian Stenger2017-03-081-3/+1
| | | | | | | | | | | | | Qml files used by Quick tests are not necessarily added to the project file and therefore not fully handled by the QmlJS code model / snapshot. When adding qml files to a directory that is handled by the code model these folders are not scanned again - we need to enforce such a scan on AutoTest plugin's side. Task-number: QTCREATORBUG-17805 Change-Id: Ie3d071a9aa03297d618648b06d52fb298c856d25 Reviewed-by: Marco Benelli <marco.benelli@qt.io>
* AutoTest: Ensure that removing and adding qml files is noticedChristian Stenger2017-03-071-0/+29
| | | | | | Task-number: QTCREATORBUG-17805 Change-Id: I068f6925fc39813a504205c4ef8e8b9f9e911189 Reviewed-by: David Schulz <david.schulz@qt.io>
* AutoTest: Avoid processing files that are no more presentChristian Stenger2017-03-071-1/+5
| | | | | Change-Id: I02ea32b14fe0d911f3c0b151eb993999922605e5 Reviewed-by: David Schulz <david.schulz@qt.io>
* Remove spaces in initializer listsTim Jenssen2017-02-221-2/+2
| | | | | | | Format initializer lists code style like. Change-Id: Ib82c235e4ba7dc75ee96a7abc0c47eff7b0a9013 Reviewed-by: hjk <hjk@qt.io>
* AutoTest: Modernize codeChristian Stenger2017-02-171-10/+10
| | | | | | | | | | * remove unnecessary QLatin1String where possible * foreach * nullptr * bad naming of static members Change-Id: If0f7c6839be4d2efbfef6f7f0775d2034775bd90 Reviewed-by: David Schulz <david.schulz@qt.io>
* AutoTest: Remove unnecessary indirection when creating test tree itemsChristian Stenger2017-01-121-2/+9
| | | | | Change-Id: Id4648196011b6769a2cd51b4daee146068272f00 Reviewed-by: David Schulz <david.schulz@qt.io>
* AutoTest: Modernize code a bitChristian Stenger2016-09-291-7/+6
| | | | | Change-Id: Ie56f6e5cb8a4f1962bd8df5e57214911ae609921 Reviewed-by: David Schulz <david.schulz@qt.io>
* AutoTest: Correctly release resourcesChristian Stenger2016-07-151-0/+7
| | | | | Change-Id: I8023c1468f9cf9cc0c549a466b298e19a6b40a15 Reviewed-by: Oliver Wolff <oliver.wolff@qt.io>
* AutoTest: Fix parsing for QuickTestsChristian Stenger2016-07-151-1/+5
| | | | | | | | | | | | | | | | If the scan for quick tests was triggered just by a change of a qml file (including indexing by the respective modelmanager) we might find tests that won't be able to execute. If we have already found quick tests we know their respective project files. If we cannot find the files to be scanned inside the already found ignore scan requests for such files. This patch is kind of a continuation of b570ee1b801da0906fdba9e0218e681b003a9857 (Fix initial parsing when loading session) Change-Id: Ic1228641f60abf127134acbd4232a0ddd30ef159 Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io> Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* AutoTest: Cancel possible running tasks on shutdownChristian Stenger2016-07-151-1/+2
| | | | | | | | | 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: Avoid fetching WorkingCopy from multiple threadsChristian Stenger2016-06-201-1/+1
| | | | | | | | | | | Instead fetch it once before starting asynchronous processing and accept that current state of the WorkingCopy might be not completely up to date. This avoids a crash that might happen when the code model tries to update the WorkingCopy while the test code parser fetches information of the WorkingCopy. Change-Id: I2a893bc8814090361305657ed3c3d772c7bf07d5 Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
* AutoTest: Add Id to parsers and remove now useless enumChristian Stenger2016-06-071-6/+8
| | | | | | | Preparation for introducing test frameworks. Change-Id: Iefaa4ca9dd9af665444556afa9c6e326041cfd0f Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
* AutoTest: Move test framework related code...Christian Stenger2016-06-011-0/+239
...into files and respective sub folders. Change-Id: Ic80d693bd73993a6e74b6d422349e47276e8cb6e Reviewed-by: David Schulz <david.schulz@theqtcompany.com>