Commit Graph

33 Commits

Author SHA1 Message Date
Christian Stenger
7c06e4b768 Be more generic regarding supported project types
This removes the hard dependency on QmakeProjectManager.
Furthermore now unneeded code is removed and some parts
of the parsing are slightly modified to support other
project types than qmake based projects.

Change-Id: I1c23056d5a444ddea857e10fdb71264eb6ecc269
Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>
Reviewed-by: Niels Weber <niels.weber@theqtcompany.com>
2015-08-06 14:53:45 +03:00
Christian Stenger
4fbc020ddc Ensure we do not interfere with ourselves while parsing
Change-Id: I4e22e91273737321e7dbfa10e50b4ae1f4ee63f9
Reviewed-by: Niels Weber <niels.weber@theqtcompany.com>
2015-08-06 14:53:37 +03:00
Christian Stenger
e9b2840327 Provide 'Run This Test' context menu entry
This menu entry will be added only if current selected test (function)
is not an unnamed Quick Test. Otherwise it's now possible to execute
a particular test case or just a single test function by using the
context menu. This avoids the need of (de)selecting inside the model.

Change-Id: I857a3ffe72c72a9dbb06e948045cfe2c7843935d
Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
2015-06-24 16:40:34 +03:00
Christian Stenger
8260b79458 Fix getting test configuration information
This was especially wrong if the information is not available before
building the project. Now the information will be fetched after a
possible automatic build had been done.

Change-Id: If92bc714039733700885820648471e355199079d
Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
2015-06-24 16:38:03 +03:00
Christian Stenger
c5fad37560 Avoid null pointer access
Change-Id: Ie6f64a97d1d97efaa1e1f3ea784a119981159e62
Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
2015-05-19 12:11:42 +03:00
Christian Stenger
7a8b73a0ca Fix enabling and disabling test code parser
Change-Id: If03752aaf3db36929e5e9d1b468e691e4dab1b96
Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
2015-04-16 16:22:37 +03:00
Christian Stenger
a1e8cc5e44 Use only active target for guessing run environment
Change-Id: Id7f9f299a22dabd350ac1e8279500cf1054210f8
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
2015-04-14 08:28:48 +03:00
Christian Stenger
d43a36c816 Trigger parse when project parts have been updated
Change-Id: I8b81bd91671b3d855c617c63185baa2951a55e6e
Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
2015-04-09 08:33:01 +03:00
Leena Miettinen
ae7b3e8404 Autotest: edit UI text and messages
Fix capitalization, punctuation, and grammar
issues.

Change-Id: Ie5044a1a3445ea078fe52ae20b1b4eec747e3de4
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
2015-03-31 11:51:09 +03:00
Christian Stenger
535f1eec18 Fix removing unnamed quick tests...
...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>
2015-03-03 15:36:43 +02:00
Christian Stenger
aba2844a5a Fix possible null-pointer access
Change-Id: I609828b4656c00c1c358759f0c844ecb23157b8b
Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
2015-03-03 15:24:32 +02:00
Christian Stenger
9eb6167189 Improve handling of disabled parser and re-enabling parser
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>
2015-02-27 15:03:52 +02:00
Christian Stenger
7f5db66596 Fix copyright headers
Change-Id: If02fedb7c191492ddfaf2eb34e74fcdb7a007c94
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
2015-02-19 09:13:32 +02:00
Christian Stenger
b5341a9a03 Try to guess run configuration if none is explicitly set
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>
2015-02-17 16:40:39 +02:00
Christian Stenger
b9a60137ad Clean up plugin
Change-Id: I695adb992f4d1f32f266f1628f2094e4bcc81485
Reviewed-by: Andre Poenitz <andre.poenitz@theqtcompany.com>
2015-02-17 10:44:35 +02:00
Christian Stenger
4caba7a3dd Perform parsing asynchronously...
...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>
2015-02-17 10:26:49 +02:00
Christian Stenger
223b43e9e0 Enable and disable parser on demand
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>
2015-02-17 10:26:39 +02:00
Christian Stenger
213a687f45 Rework parsing and provide unit test
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>
2015-02-17 10:26:28 +02:00
Christian Stenger
2ce99680b2 Decouple code parser and model
Additionally some minor refactorings to increase readability.

Change-Id: I0be120fcedcf31dbb0116d84f0d3c23cf95e7d91
Reviewed-by: Andre Poenitz <andre.poenitz@theqtcompany.com>
2015-02-16 15:43:02 +02:00
Christian Stenger
61c50e4aa3 Fix wrong behavior for gathering test configuration
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>
2015-02-16 15:42:25 +02:00
Christian Stenger
834c52f483 Avoid crash when using wrongly created test tree
Change-Id: I686f0cf285daeb3889161109964efd6e9ac47a40
Reviewed-by: Tim Jenssen <tim.jenssen@theqtcompany.com>
2015-02-05 08:25:01 +02:00
Tim Jenssen
6571c85f3d fix that windows can find the file
added missing .exe file suffix

Change-Id: I537736a95de778e0a498c37d21baf0d717eb8c4d
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
2015-01-21 09:26:19 +02:00
Tim Jenssen
2a78ffea8d refactor if clause
Change-Id: I3ce6e711392f35c89dfcbecc3c8fcb8aca293602
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
2015-01-21 09:24:47 +02:00
Christian Stenger
35939ac402 Avoid executing unnamed Quick Tests if no related main is executed anyway
Change-Id: I521065577c195713bc252e6762a88011996f045c
Reviewed-by: Tim Jenssen <tim.jenssen@theqtcompany.com>
2015-01-09 08:24:45 +02:00
Christian Stenger
b0c4a9cc3b Improve support for Qt Quick Tests 2014-12-04 13:52:16 +01:00
Christian Stenger
9a644d1257 Support sorting of test tree
Additionally preparation of filtering has been done.
2014-12-04 13:52:16 +01:00
Christian Stenger
0357b0e98b Add basic support for Qt Quick Test 2014-12-04 13:52:16 +01:00
Christian Stenger
87e5cf87e1 Enable 'Run *' buttons only if tests are available 2014-12-04 13:52:15 +01:00
Christian Stenger
431d15bd0c Add stop button and minor preparation for progress bar 2014-12-04 13:52:15 +01:00
Christian Stenger
345b4de47a Rework the parsing and fixing detection of changes
Additionally
* fixed some deletion of pointers
* const correctness
* small refactorings for readability
* better separation of responsibilities
2014-12-04 13:52:15 +01:00
Christian Stenger
eba497d921 Add filtering to test results 2014-12-04 13:52:15 +01:00
Christian Stenger
44db2be195 Provide basic test runner and output pane 2014-12-04 13:52:15 +01:00
Christian Stenger
2f4139e5d3 Initial commit 2014-12-04 13:52:14 +01:00