aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/cppeditor/cppeditorplugin.h
diff options
context:
space:
mode:
authorNikolai Kosjar <nikolai.kosjar@theqtcompany.com>2015-07-28 12:29:24 +0200
committerNikolai Kosjar <nikolai.kosjar@theqtcompany.com>2015-07-29 08:53:45 +0000
commit953be3d3b25baf7e04d11f04284975843fc6c59b (patch)
tree765ee8d41957a3a50501498382b1ef93a41b7a91 /src/plugins/cppeditor/cppeditorplugin.h
parentdb3dc92202bfb580d23045bd880bc3c18a43ffa3 (diff)
CppEditor: Tests: Revive tests depending on loaded projects
The tests were broken since the qmake project manager switched to an asynchronous loading. We can't simply check if there are loaded projects because at time the tests are executed there are not any. The user has to set some environment variable in order to make these tests run. Change-Id: I94778578dea5562ee5dad2c565c7b877c18996a7 Reviewed-by: Erik Verbruggen <erik.verbruggen@theqtcompany.com>
Diffstat (limited to 'src/plugins/cppeditor/cppeditorplugin.h')
-rw-r--r--src/plugins/cppeditor/cppeditorplugin.h13
1 files changed, 11 insertions, 2 deletions
diff --git a/src/plugins/cppeditor/cppeditorplugin.h b/src/plugins/cppeditor/cppeditorplugin.h
index 8745dc9bb4..a4f4304b0c 100644
--- a/src/plugins/cppeditor/cppeditorplugin.h
+++ b/src/plugins/cppeditor/cppeditorplugin.h
@@ -213,8 +213,17 @@ private slots:
void test_includehierarchy_data();
void test_includehierarchy();
- // The following tests depend on the projects that are loaded on startup
- // and will be skipped in case no projects are loaded.
+ // The following tests operate on a project and require special invocation:
+ //
+ // Ensure that the project is properly configured for a given settings path:
+ // $ ./qtcreator -settingspath /your/settings/path /path/to/project
+ //
+ // ...and that it builds, which might prevent blocking dialogs for not
+ // existing files (e.g. ui_*.h).
+ //
+ // Run a test:
+ // $ export QTC_TEST_WAIT_FOR_LOADED_PROJECT=1
+ // $ ./qtcreator -settingspath /your/settings/path -test CppEditor,test_openEachFile /path/to/project
void test_openEachFile();
void test_switchHeaderSourceOnEachFile();
void test_moveTokenWiseThroughEveryFile();