summaryrefslogtreecommitdiffstats
path: root/doc/testcases.txt
diff options
context:
space:
mode:
Diffstat (limited to 'doc/testcases.txt')
-rw-r--r--doc/testcases.txt9
1 files changed, 8 insertions, 1 deletions
diff --git a/doc/testcases.txt b/doc/testcases.txt
index 405edae..ac7e579 100644
--- a/doc/testcases.txt
+++ b/doc/testcases.txt
@@ -35,7 +35,14 @@ the following code:
QTEST_QUICK_MAIN(qmlexample)
Where "qmlexample" is an identifier to use to uniquely identify
-this set of tests.
+this set of tests. You should add "CONFIG += qmltestcase" to your
+*.pro file; for example:
+
+ TEMPLATE = app
+ TARGET = tst_qmlexample
+ CONFIG += warn_on qmltestcase
+ SOURCES += tst_qmlexample.cpp
+ RESOURCES += qmlexample.qrc
The test harness scans recursively for "tst_*.qml" files in the qrc
resources that are bound into the test harness binary. The following