forked from qt-creator/qt-creator
Doc: Describe new test options
Fix paths to options, because they have been moved to separate tabs. Update and add screenshots. Change-Id: Ibdffa8e32609a6614114372c5d38c4372f874eaf Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
BIN
doc/images/qtcreator-autotests-options-google.png
Normal file
BIN
doc/images/qtcreator-autotests-options-google.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 4.9 KiB |
BIN
doc/images/qtcreator-autotests-options-qt.png
Normal file
BIN
doc/images/qtcreator-autotests-options-qt.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 4.7 KiB |
Binary file not shown.
Before Width: | Height: | Size: 10 KiB After Width: | Height: | Size: 7.8 KiB |
@@ -131,9 +131,9 @@
|
|||||||
\endlist
|
\endlist
|
||||||
|
|
||||||
To specify settings for running Google tests, select \uicontrol Tools >
|
To specify settings for running Google tests, select \uicontrol Tools >
|
||||||
\uicontrol Options > \uicontrol {Test Settings}.
|
\uicontrol Options > \uicontrol {Test Settings} > \uicontrol {Google Test}.
|
||||||
|
|
||||||
\image qtcreator-autotests-options.png
|
\image qtcreator-autotests-options-google.png
|
||||||
|
|
||||||
To run disabled tests, select the \uicontrol {Run disabled tests} check box.
|
To run disabled tests, select the \uicontrol {Run disabled tests} check box.
|
||||||
|
|
||||||
@@ -143,6 +143,11 @@
|
|||||||
repeatable, you can run them in a different order each time by selecting the
|
repeatable, you can run them in a different order each time by selecting the
|
||||||
\uicontrol {Shuffle tests} check box.
|
\uicontrol {Shuffle tests} check box.
|
||||||
|
|
||||||
|
To turn failures into debugger breakpoints, select the
|
||||||
|
\uicontrol {Break on failure while debugging} check box. To turn assertion
|
||||||
|
failures into C++ exceptions, select the \uicontrol {Throw on failure} check
|
||||||
|
box.
|
||||||
|
|
||||||
For more information about creating Google tests, see the
|
For more information about creating Google tests, see the
|
||||||
\l{https://github.com/google/googletest/blob/master/googletest/docs/Primer.md}
|
\l{https://github.com/google/googletest/blob/master/googletest/docs/Primer.md}
|
||||||
{Google Test Primer}.
|
{Google Test Primer}.
|
||||||
@@ -172,7 +177,9 @@
|
|||||||
|
|
||||||
If a test takes more than a minute to execute, the default timeout might
|
If a test takes more than a minute to execute, the default timeout might
|
||||||
stop the test execution. To increase the timeout, select \uicontrol Tools >
|
stop the test execution. To increase the timeout, select \uicontrol Tools >
|
||||||
\uicontrol Options > \uicontrol {Test Settings}.
|
\uicontrol Options > \uicontrol {Test Settings} > \uicontrol General.
|
||||||
|
|
||||||
|
\image qtcreator-autotests-options.png
|
||||||
|
|
||||||
\QC scans the project for tests when you open the project and updates the
|
\QC scans the project for tests when you open the project and updates the
|
||||||
test list when you edit tests. To only update the test list when the
|
test list when you edit tests. To only update the test list when the
|
||||||
@@ -181,10 +188,17 @@
|
|||||||
|
|
||||||
The code inside a benchmark test is measured, and possibly also repeated
|
The code inside a benchmark test is measured, and possibly also repeated
|
||||||
several times in order to get an accurate measurement. This depends on the
|
several times in order to get an accurate measurement. This depends on the
|
||||||
measurement back-end that you can select in \uicontrol {Test Settings}:
|
measurement back-end that you can select in the
|
||||||
walltime, CPU tick counter, event counter, Vallgrind Callgring, and Linux
|
\uicontrol {Benchmark Metrics} group in \uicontrol Tools >
|
||||||
|
\uicontrol Options > \uicontrol {Test Settings} > \uicontrol {Qt Test}:
|
||||||
|
walltime, CPU tick counter, event counter, Valgrind Callgrind, and Linux
|
||||||
Perf. For more information, see \l{Creating a Benchmark}.
|
Perf. For more information, see \l{Creating a Benchmark}.
|
||||||
|
|
||||||
|
\image qtcreator-autotests-options-qt.png
|
||||||
|
|
||||||
|
To allow the debugger to interrupt Qt tests on assertions, select the
|
||||||
|
\uicontrol {Disable crash handler while debugging} check box.
|
||||||
|
|
||||||
\section1 Viewing Test Output
|
\section1 Viewing Test Output
|
||||||
|
|
||||||
The test results are displayed in the \uicontrol {Test Results} output pane.
|
The test results are displayed in the \uicontrol {Test Results} output pane.
|
||||||
@@ -238,5 +252,6 @@
|
|||||||
show.
|
show.
|
||||||
|
|
||||||
To hide internal messages and run configuration warnings, select
|
To hide internal messages and run configuration warnings, select
|
||||||
\uicontrol Tools > \uicontrol Options > \uicontrol {Test Settings}.
|
\uicontrol Tools > \uicontrol Options > \uicontrol {Test Settings} >
|
||||||
|
\uicontrol General.
|
||||||
*/
|
*/
|
||||||
|
Reference in New Issue
Block a user