diff options
Diffstat (limited to 'doc')
-rw-r--r-- | doc/testcases.txt | 14 |
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 ================ |