diff options
author | Leena Miettinen <riitta-leena.miettinen@qt.io> | 2018-06-06 13:57:39 +0200 |
---|---|---|
committer | Leena Miettinen <riitta-leena.miettinen@qt.io> | 2018-06-08 08:56:48 +0000 |
commit | 35cc6789d25427942d7e2e1851bef4e5cf1597ae (patch) | |
tree | d3d1f7d0517a24270623b810192f52397eb5db68 /doc | |
parent | 11e92fe789a9d88f78798b53e60a2f216184f310 (diff) |
Doc: Describe running and debugging tests from code editor
Change-Id: Ieb19c1ca62a7fa785c5ba6b90c4aebe40b124dee
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Diffstat (limited to 'doc')
-rw-r--r-- | doc/images/qtcreator-run-selected-tests.png | bin | 591 -> 392 bytes | |||
-rw-r--r-- | doc/images/qtcreator-run-tests-in-current-file.png | bin | 0 -> 460 bytes | |||
-rw-r--r-- | doc/src/howto/creator-autotest.qdoc | 28 |
3 files changed, 23 insertions, 5 deletions
diff --git a/doc/images/qtcreator-run-selected-tests.png b/doc/images/qtcreator-run-selected-tests.png Binary files differindex 12d4d30a9f..eff4acf5da 100644 --- a/doc/images/qtcreator-run-selected-tests.png +++ b/doc/images/qtcreator-run-selected-tests.png diff --git a/doc/images/qtcreator-run-tests-in-current-file.png b/doc/images/qtcreator-run-tests-in-current-file.png Binary files differnew file mode 100644 index 0000000000..34e6794921 --- /dev/null +++ b/doc/images/qtcreator-run-tests-in-current-file.png diff --git a/doc/src/howto/creator-autotest.qdoc b/doc/src/howto/creator-autotest.qdoc index fe47bd617b..094b4bb05a 100644 --- a/doc/src/howto/creator-autotest.qdoc +++ b/doc/src/howto/creator-autotest.qdoc @@ -188,11 +188,17 @@ \li In the \uicontrol Tests view, select the tests to run. - \li In the \uicontrol {Test Results} output pane, select - \inlineimage run_small.png - (\uicontrol {Run All Tests}) to run all test or - \inlineimage qtcreator-run-selected-tests.png - (\uicontrol {Run Selected Tests}) to run the selected tests. + \li In the \uicontrol {Test Results} output pane, select: + + \list + \li \inlineimage run_small.png + (\uicontrol {Run All Tests}) to run all tests. + \li \inlineimage qtcreator-run-selected-tests.png + (\uicontrol {Run Selected Tests}) to run the selected tests. + \li \inlineimage qtcreator-run-tests-in-current-file.png + (\uicontrol {Run Tests for Current File}) to run the tests + in the file currently open in the code editor. + \endlist \note By default, \QC builds a project before deploying and running it. @@ -249,6 +255,18 @@ which they are defined in the source code, select \inlineimage leafsort.png (\uicontrol {Sort Naturally}). + \section2 Running and Debugging Tests from Code Editor + + You can run and debug tests in the file currently open in the code editor. + To run all tests in the open file, select \uicontrol Tools > + \uicontrol Tests > \uicontrol {Run Tests for Current File}. + + To run the test currently selected in the open file, select + \uicontrol {Run Test Under Cursor} in the context menu. + + To debug the currently selected test, select + \uicontrol {Debug Test Under Cursor} in the context menu. + \section2 Specifying Settings for Running Qt Tests The code inside a benchmark test is measured, and possibly also repeated |