Commit Graph

114 Commits

Author SHA1 Message Date
Christian Stenger
3ee77bd119 Fix getSelectedTests() for Quick Tests having special functions
Quick Tests with special functions (init(), cleanup(),...)
must not try to execute these functions explicitly.

Change-Id: Ia9a4e9c2788110bb61a70796b0e3a4b9b2091a49
Reviewed-by: Niels Weber <niels.weber@theqtcompany.com>
Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
2015-08-24 07:57:04 +03:00
Robert Loehning
5386fda851 Preferences: Options page needs unique ID
Task-number: QTCREATORBUG-14742
Change-Id: I81f21ac5ccd4d0d2e5775e7d816bfd91ef927e84
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
2015-08-10 16:15:47 +03:00
Christian Stenger
08ab1b6d76 Don't use qApp->processEvents() if not necessary
Change-Id: I2e92341530f3d79f9c0b47f2007750582db9a361
Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
2015-07-16 12:20:04 +03:00
Christian Kandeler
c7a8a94161 qbs build: Soft dependency on LicenseChecker.
Change-Id: Ibb1f4ee5996306fe24df72b0cf16d5652a76bc57
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
2015-06-26 14:57:17 +03:00
Kai Koehne
eee4f2c6ac Make licensechecker dependency optional
Change-Id: Ia353ef7065dbd7dd3ff1f3a9293613cf7f14ce37
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
2015-06-25 16:31:54 +03:00
Christian Stenger
a133256e37 Fix display of benchmark results
The '-' could have been misinterpreted as sign of the value following it.

Change-Id: Ia308cca93f81e7fa026485e9cda3fcc433696a35
Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
2015-06-24 16:40:45 +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
0afd504748 Add auto-scroll feature for results pane
Change-Id: Iff209384c2bf30b3ce2b9241ce1c719a44592e65
Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
2015-06-17 15:06:45 +03:00
Christian Stenger
eeccdfbd54 Fix getting source file name on OSX
If the current executable is an app bundle the source file
location is given as relative path from the app bundles location
instead of the "real" executable somewhere inside the app bundle.

Change-Id: I37ad2daae5a7ebde65c0e76a8a9a7837401bc749
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
2015-06-09 07:43:51 +03:00
Robert Loehning
f092ad0a2e Simplify TestResultsPane::visibilityChanged
Change-Id: Ie278384bb0fe899989a01a0ad89455b11059787f
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
2015-05-29 15:02:52 +03:00
Christian Stenger
21afdf227a Fix wrong state of Run/Run All buttons
Introduced with fa28f1cb30

Change-Id: I80f5e08bcf2b630fcf7a4a77d47db6e7b7d26e50
Reviewed-by: Robert Loehning <robert.loehning@theqtcompany.com>
2015-05-29 14:43:43 +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
5b93689702 Detect special functions for Quick Tests
Quick Tests are capable of having benchmarks, data driven tests
and special functions (init/cleanup/...) as well.

Change-Id: Ieb9b6b1f842f1211a9d3192b486f789c987fa27b
Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
2015-05-19 09:00:15 +03:00
Robert Loehning
fa28f1cb30 Disable run buttons until tests are found
Change-Id: I418b63dbdd4a641fa02a61b792ec6dbfafe39749
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
2015-05-18 16:25:31 +03:00
Christian Stenger
fcf8484eb2 Replace ListView by TreeView inside results pane
This removes the flickering of the view when adding too many items
in a short time frame. Additionally it is the first step towards
making the results a real tree for having a better overview and to
be able to reduce the output easier to what is wanted by the user.

Change-Id: Id515bf0f43c5037d956bdbf2818a5d6ef97c82dd
Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
2015-04-28 09:22:06 +03:00
Christian Stenger
c13c37f9f4 Fix plugin unit test
Since d43a36c816 the code parser could
have been internally triggered already while still evaluating the
project. This made the parser trigger a parsingFinished() already for
a parse where not the full project had been available inside the
code model which made the plugin unit test fail.

Change-Id: I6cc787c24205cb82c6c2636f79bd0acc5c778c64
Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
2015-04-16 16:22:43 +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
00ca77a560 Do not allow triggering multiple test runs at once
This was possible as triggering further test runs could happen
while the current test run was still building the project.
Additionally it's now possible to stop the build process (if any)
by hitting the Stop button of the test results pane as this is
part of the test run.

Change-Id: I38940b5b8f4ba9e373785921c04cbceaeb2e5acf
Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
2015-04-16 16:22:31 +03:00
Christian Stenger
b88bfbb55a Fix state handling of parser...
...and enable/disable respective menu items accordingly.
Now it should be impossible to trigger more than one parse
at a time or setting a state and invalidating a state with
higher priority.

Change-Id: I0bcbeca6626209918e0a74b0bd2722583fc47bb3
Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
2015-04-16 16:22:21 +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
7768f07ece Add wizard install step when building with qbs
Change-Id: I83249c99b7a70b6dbb6909446dbe9c7e89b163fc
Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>
2015-04-10 16:25:06 +03:00
Christian Stenger
f1b240d004 Disable context menu entries while parsing
Change-Id: Ib562ed00065fedd94fdaed0edb11b0fa62a18de5
Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
2015-04-10 16:24:57 +03:00
Christian Stenger
4fb458c9e7 Fix parsing of encoded xml attributes
If an xml attribute contains an entity parsing it failed due to
missing decoding. This patch decodes entities holding (hexa-)decimal
entities.
This is especially necessary for files (or paths) containing some
special characters that might end up encoded inside the output that
would be generated by running the tests.

Change-Id: I4f3b9f9edc59ff1433b92ed4ce1933eaf29ffe74
Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
2015-04-10 14:58:42 +03:00
David Schulz
97a8806417 Don't reset class name for empty lines.
Change-Id: Ib8ae9244bb282a10f1696de8f82469474fb0498d
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
2015-04-10 13:52:20 +03:00
Christian Stenger
475c6cea1e Limit result output by default
For huge amount of output the processing takes much too long
and blocks QC. So, limiting it to a reasonable value seems
appropriate. Additionally provide a setting to be still able
to get the full output if you need to.

Change-Id: I811d69be33c77830049f64fcf291681f05011966
Reviewed-by: Riitta-Leena Miettinen <riitta-leena.miettinen@theqtcompany.com>
Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
2015-04-10 10:41:02 +03:00
Christian Stenger
178318d077 Fix initialization order...
...to avoid accessing uninitialized members.

Change-Id: I5d174d2b6f351dc5189a65c1639b0f284a1fd52d
Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
2015-04-10 08:07:23 +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
Christian Stenger
2182b2adbe Change ui string to avoid confused users
Change-Id: I431de718d01e454bb55216afd5d0ca792fa69677
Reviewed-by: Riitta-Leena Miettinen <riitta-leena.miettinen@theqtcompany.com>
2015-04-08 13:41:51 +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
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
9167738179 Add shortcuts to Run Tests options
Change-Id: Ia738420baeb51940865c59b66908068c85d658c1
Reviewed-by: Riitta-Leena Miettinen <riitta-leena.miettinen@theqtcompany.com>
Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
2015-03-30 14:52:48 +03:00
Christian Stenger
377408b1b0 Fix parser state handling...
...especially state transitions that may happen while project files
are evaluated or source files are parsed.

Change-Id: Iceef38500b6d6a4deb430738e5e960077f8eb39a
Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
2015-03-30 12:21:44 +03:00
Christian Stenger
d0de2fdbbc Fix results output for long output
For non-selected output use elided text if necessary and
for selected add additional line breaks to make sure the
text fits into the width of the output area.

Additionally removed different style of lines coming after
the first one as it does not make sense at all.

Change-Id: Ifdd8cb076151ce3e0d895c702921d8f4d2a2b15a
Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
2015-03-30 12:21:34 +03:00
Christian Stenger
adb40d4bd5 Fix scroll behavior of results pane
For long output it should be possible to scroll across the output
instead of scrolling itemwise and being never capable to view the
bottom of the output.

Change-Id: Ia3478932894fc0b08e10466ec987f12295e9fff5
Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
2015-03-30 11:59:23 +03:00
Christian Stenger
2c1a0119bd Fix unexpected parser state when parsing finishes
While parsing test code it might happen that the user closes
all related widgets and so the parser falls into the state Disabled.
This was unexpected and did print a warning.
Now this case is somewhat expected and won't print a warning anymore.

Change-Id: I0082bdc31f6ed351cf1dbd7b34da2f5672aee3dd
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
2015-03-09 13:01:54 +02:00
Christian Stenger
36a8265549 Move variable declaration into using block
Change-Id: Ibf5f5fd825b7beb2bb6b607c8b822b4dfeebfda5
Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
2015-03-03 16:03:50 +02: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
690f15c102 Fix names of local variables
Change-Id: I853ad97ff54d28714263f1431838dbe8d71f2fe2
Reviewed-by: Oliver Wolff <oliver.wolff@theqtcompany.com>
2015-02-27 15:42:09 +02:00
Christian Stenger
6a3b43fef0 Fix camel-case of *postponed*
Change-Id: Ie00c35bceba3b772f68e2d9b665af8427a105433
Reviewed-by: Oliver Wolff <oliver.wolff@theqtcompany.com>
2015-02-27 15:28:06 +02:00
Christian Stenger
2b8d6c5fc4 Remove useless member
No need to have another member variable for almost the same
functionality. Consolidated where necessary.

Change-Id: Iefaa410fea527f88b18b406199a449fc9e4d0533
Reviewed-by: Oliver Wolff <oliver.wolff@theqtcompany.com>
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
2015-02-27 15:04:06 +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
Tobias Hunger
01eb2ad24f Compile fix: Add missing includes
Change-Id: Ie93829eb73888646fcfd76746cd74bd7c1b09924
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
2015-02-26 17:56:32 +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 Kandeler
2bd868b685 Add qbs project file.
Change-Id: I36368fa8c5478bc688819ea23152f8272ff5cfa9
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
2015-02-18 17:05:26 +02:00
Christian Kandeler
f6c973249d Fix include type.
Change-Id: Ibf9e205c3b2faf46216043c9061209cb29c13b04
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
2015-02-18 17:05:16 +02:00
Christian Stenger
e3f4ca4185 Fix compile
Change-Id: I98c609dde6a48628561beca969ccd108361758dc
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
2015-02-18 09:31:44 +02:00
Christian Stenger
0a7b2b76cb Display progress indicator on navigation view...
...if parsing takes longer.

Change-Id: Ib311c031ae0af72b2f923d93578099687d9af91a
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
2015-02-18 09:23:02 +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