Commit Graph

20 Commits

Author SHA1 Message Date
Christian Stenger
ce926564b0 Handle disabled gtests more correctly
Test summary now displays the number of disabled tests instead of having
them printed as loose messages.

Change-Id: I8ea736f789afc7c8ad6101a03fa5ca6428d92744
Reviewed-by: Niels Weber <niels.weber@theqtcompany.com>
2016-01-13 10:11:04 +00:00
Christian Stenger
650be0e496 Add capability to run gtest related tests
For now this only applies for 'Run All'. To be able to run only
selected tests we first have to introduce the check state for
gtest related items as well.

Change-Id: I196b56b7fe426f846f2be0df7e21458c2733cbd1
Reviewed-by: Niels Weber <niels.weber@theqtcompany.com>
2016-01-12 12:13:47 +00:00
Eike Ziller
e72cfeefba Merge remote-tracking branch 'origin/3.6'
Change-Id: Iedfd7373f3e4cf60d101aace1b0b25d41f11cda1
2015-12-15 11:50:27 +01:00
Christian Stenger
fb7ceae64b Use Qt style for enums
Change-Id: I10c1379dea467f10214772168f4c1ec3134a99ee
Reviewed-by: Niels Weber <niels.weber@theqtcompany.com>
2015-12-14 08:46:09 +00:00
Christian Stenger
1a8f37db0e Delete pointer if it is no more used...
...and postpone creation of the newItem object a bit.

Change-Id: Id2322dcaae33cd902267dc73d2929db06880e20c
Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
2015-12-09 08:22:31 +00:00
Christian Stenger
17fbe92100 Simplify conversion from/to Result::Type
Additionally rename enum value UNKNOWN to INVALID.

Change-Id: I08dc4e371afb576db10716eda00ff6368f9d2311
Reviewed-by: Niels Weber <niels.weber@theqtcompany.com>
2015-10-08 17:32:48 +03:00
Christian Stenger
274d095f46 Use QC's TreeModel for TestResultModel
This changes the model to be a real tree instead of a list.
Additionally the results pane now displays the results as
tree as well.

Change-Id: I69ba7bbfcd75ce17c3a0d4052498d9c1c7382d43
Reviewed-by: Niels Weber <niels.weber@theqtcompany.com>
2015-10-02 10:42:11 +03:00
Christian Stenger
3f506a2a36 Allow filtering of test results always
This almost reverts 8bb0340935.

Change-Id: I57ac2e1dd052ce434f7381f4d6df52ecdc68fed6
Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
2015-04-02 09:22:03 +03: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
Tim Jenssen
0c9531f384 don't pollute the Autotest namespace with an enum
Change-Id: Ic6c3e3beaba15e83c8524394ccc6a1953e76d59a
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
2015-01-12 13:42:35 +02:00
Tim Jenssen
ba8979d066 Get rid of the Locker in TestResultModel...
...use signals and slots instead.

Additionally re-use the existing item that is displaying the
"Entering Test Function..." information.

Change-Id: Ibedac01ced9e987d542aa4dc878588fbec84d585
Reviewed-by: Tim Jenssen <tim.jenssen@theqtcompany.com>
2015-01-09 08:24:39 +02:00
Christian Stenger
cda4227a62 Re-do the usage of QWriteLocker
Only lock if necessary to avoid dead-lock situations.

Change-Id: I39d1158749131a72805e55f28aba79e1827f158b
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
2014-12-09 15:04:46 +02:00
Christian Stenger
ac24550a22 Add special message to results pane
This message just states which function actually is executed and will
always be on the bottom of the list of results.
When test run finishes this message will be completely removed.

Change-Id: Ie8fedfc74f67eba71a2bcf55f4dc1553754fca9a
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
2014-12-09 10:33:15 +02:00
Christian Stenger
32a6849fae Add support for minimal benchmarks 2014-12-04 13:52:16 +01:00
Christian Stenger
d278476956 Support blacklisted test cases 2014-12-04 13:52:16 +01:00
Christian Stenger
eb073616fb Access test results list from multiple threads in a safe way
This had lead to crashes when executing projects with some more
tests or more test output. Now it's using a mutex to avoid
concurrent access.
2014-12-04 13:52:16 +01:00
Christian Stenger
9394a43128 Add summary to results pane 2014-12-04 13:52:15 +01:00
Christian Stenger
8bb0340935 Enable filter items on availability
If there are items inside the results pane that match the filter
item filtering for these kind of results will be enabled.
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