From abc174908ae3451f731064eed7c48b15560e298c Mon Sep 17 00:00:00 2001 From: Rhys Weatherley Date: Wed, 8 Dec 2010 10:30:48 +1000 Subject: Run tests that are not bound as resources --- doc/testcases.txt | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'doc') 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: +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 ================ -- cgit v1.2.3