diff options
Diffstat (limited to 'doc/src/howto/creator-autotest.qdoc')
-rw-r--r-- | doc/src/howto/creator-autotest.qdoc | 28 |
1 files changed, 23 insertions, 5 deletions
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 |