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>
The '-' could have been misinterpreted as sign of the value following it.
Change-Id: Ia308cca93f81e7fa026485e9cda3fcc433696a35
Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
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>
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>
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>
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>
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>
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>
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>
...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>
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>
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>
...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>
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>
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>
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>
...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>
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>
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>
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>