Doc: Update QtQuickTest documentation
authorCaroline Chao <caroline.chao@digia.com>
Mon, 11 Feb 2013 10:45:34 +0000 (11:45 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Mon, 18 Feb 2013 16:35:09 +0000 (17:35 +0100)
Add some information about -input, -functions and -help
command-line options. Add some examples on how to run a
single file and a single function for a QtQuickTest based
test.

Change-Id: Icd5f92bf8541aa412e2cd18d82dec16a85fe78c9
Reviewed-by: Alan Alpert <aalpert@rim.com>

src/quick/doc/src/appdevguide/qtquicktest.qdoc

index bf8ca86..f608576 100644 (file)
     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:
     \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
 */