summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorRhys Weatherley <rhys.weatherley@nokia.com>2010-12-08 10:30:48 +1000
committerRhys Weatherley <rhys.weatherley@nokia.com>2010-12-08 10:44:24 +1000
commitabc174908ae3451f731064eed7c48b15560e298c (patch)
tree02cc575599accaacbaee51175da8d61211b594df /doc
parent03f5c4bdc780ba621a2db09560db3bc50eec1444 (diff)
Run tests that are not bound as resources
Diffstat (limited to 'doc')
-rw-r--r--doc/testcases.txt14
1 files changed, 12 insertions, 2 deletions
diff --git a/doc/testcases.txt b/doc/testcases.txt
index 8b52ae1..73e3a02 100644
--- a/doc/testcases.txt
+++ b/doc/testcases.txt
@@ -22,13 +22,23 @@ is an example .qrc file:
</qresource>
</RCC>
+The QTEST_QUICK_SOURCE_DIR macro can be defined at compile time to
+run tests from plain files without binding them into resources.
+Modify your .pro file to include the following line:
+
+ DEFINES += QTEST_QUICK_SOURCE_DIR=\"\\\"$$PWD\\\"\"
+
The QTEST_QUICK_SOURCE_DIR environment variable can also be set
-at runtime to run test cases from a non-resource directory.
+at runtime to run test cases from a different directory. This may
+be needed to run tests on a target device where the compiled-in
+directory name refers to a host.
Other *.qml files may appear for auxillary QML components that are
used by the test.
-See "tests/qmlexample" for an example of creating a test harness.
+See "tests/qmlexample" for an example of creating a test harness
+that uses resources and "tests/qmlauto" for an example that uses
+the QTEST_QUICK_SOURCE_DIR macro.
Basic test cases
================