summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorRhys Weatherley <rhys.weatherley@nokia.com>2010-12-06 12:40:27 +1000
committerRhys Weatherley <rhys.weatherley@nokia.com>2010-12-06 12:43:41 +1000
commitf982ee4b3236cfeeb7aa567fd6d812316d7c2092 (patch)
tree5f8cca93d5189117f71e9e635bac358d1a085611 /doc
parent06249fd8be863a24df96a27f88bd4ed38c572ca8 (diff)
Load test cases out of qrc resources
Diffstat (limited to 'doc')
-rw-r--r--doc/testcases.txt17
1 files changed, 10 insertions, 7 deletions
diff --git a/doc/testcases.txt b/doc/testcases.txt
index b012540..f515a9d 100644
--- a/doc/testcases.txt
+++ b/doc/testcases.txt
@@ -11,16 +11,19 @@ the following code:
Where "qmlexample" is an identifier to use to uniquely identify
this set of tests.
-The test harness looks for "tst_*.qml" files in subdirectories under
-the application's source directory, which is specified by the
-QTEST_QUICK_SOURCE_DIR macro in the *.pro file:
+The test harness scans recursively for "tst_*.qml" files in the qrc
+resources that are bound into the test harness binary. The following
+is an example .qrc file:
- DEFINES += QTEST_QUICK_SOURCE_DIR=\"\\\"$$PWD\\\"\"
+ <!DOCTYPE RCC><RCC version="1.0">
+ <qresource>
+ <file>tst_basic.qml</file>
+ <file>tst_item.qml</file>
+ </qresource>
+ </RCC>
The QTEST_QUICK_SOURCE_DIR environment variable can also be set
-at runtime to override the compiled-in default. This variable will
-usually need to be set when the tests are run on a target device
-where the directory names are different from the host system.
+at runtime to run test cases from a non-resource directory.
Other *.qml files may appear for auxillary QML components that are
used by the test.