Commit Graph

20 Commits

Author SHA1 Message Date
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