summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorRhys Weatherley <rhys.weatherley@nokia.com>2010-12-10 10:10:04 +1000
committerRhys Weatherley <rhys.weatherley@nokia.com>2010-12-10 10:10:04 +1000
commit0644fe7814930cb11f0fc2749b01beff86838bfd (patch)
treeb154e6bf8a88a9e836b6ac88d1f55cf933b785f4 /doc
parent200a8ac92afa0d8c5ff54c929a345dd3e05d3dd7 (diff)
Handle import paths in the test harness
The -import option can be supplied to the test harness to add extra import directories.
Diffstat (limited to 'doc')
-rw-r--r--doc/testcases.txt6
1 files changed, 6 insertions, 0 deletions
diff --git a/doc/testcases.txt b/doc/testcases.txt
index 3ba44bc..5c6282a 100644
--- a/doc/testcases.txt
+++ b/doc/testcases.txt
@@ -73,6 +73,12 @@ See "tests/qmlexample" for an example of creating a test harness
that uses resources and "tests/qmlauto" for an example that uses
the QUICK_TEST_SOURCE_DIR macro.
+If your test case needs QML imports, then you can add them as
+"-import" options to the the test program command-line by adding
+the following line to your .pro file:
+
+ IMPORTPATH += $$PWD/../imports/my_module1 $$PWD/../imports/my_module2
+
Basic test cases
================