aboutsummaryrefslogtreecommitdiffstats
path: root/src/quick/doc/src/appdevguide/qtquicktest.qdoc
diff options
context:
space:
mode:
Diffstat (limited to 'src/quick/doc/src/appdevguide/qtquicktest.qdoc')
-rw-r--r--src/quick/doc/src/appdevguide/qtquicktest.qdoc28
1 files changed, 28 insertions, 0 deletions
diff --git a/src/quick/doc/src/appdevguide/qtquicktest.qdoc b/src/quick/doc/src/appdevguide/qtquicktest.qdoc
index bf8ca86959..f6085764be 100644
--- a/src/quick/doc/src/appdevguide/qtquicktest.qdoc
+++ b/src/quick/doc/src/appdevguide/qtquicktest.qdoc
@@ -95,6 +95,20 @@
tst_example -input /mnt/SDCard/qmltests
\endcode
+ It is also possible to run a single file using the \c{-input} option.
+ For example:
+
+ \code
+ tst_example -input data/test.qml
+ \endcode
+
+ \code
+ tst_example -input <full_path>/test.qml
+ \endcode
+
+ \note Specifying the full path to the qml test file is for example
+ needed for shadow builds.
+
If your test case needs QML imports, then you can add them as
\c{-import} options to the test program command-line by adding
the following line to your .pro file:
@@ -102,4 +116,18 @@
\code
IMPORTPATH += $$PWD/../imports/my_module1 $$PWD/../imports/my_module2
\endcode
+
+ The \c{-functions} command-line option will return a list of the current
+ tests functions. It is possible to run a single test function using the name
+ of the test function as an argument. For example:
+
+ \code
+ tst_example Test_Name::function1
+ \endcode
+
+ The \c{-help} command-line option will return all the options available.
+
+ \code
+ tst_example -help
+ \endcode
*/