Category:Tools::QtCreator::QualityAssurance: Difference between revisions

From Qt Wiki
Jump to navigation Jump to search
No edit summary
(Fix imported page)
Line 1: Line 1:
[[Category:Tools::QtCreator::QualityAssurance]]
[[Category:Tools::QtCreator::QualityAssurance]]
[toc align_right="yes" depth="2"]


= Qt Creator Quality Assurance =
= Qt Creator Quality Assurance =
Line 18: Line 16:
<code>make -i
<code>make -i
</code>
</code>
to compile ignoring potential errors. All auto test executables can be found afterwards inside their respective folders named 'tst_'''' (or 'tst_'''.exe' on Windows).
to compile ignoring potential errors. All auto test executables can be found afterwards inside their respective folders named 'tst_*' (or 'tst_*.exe' on Windows).


== Plugin Tests ==
== Plugin Tests ==
Line 24: Line 22:
Qt Creator's plugin unit tests are integrated into the source code of the respective plugins. To execute the plugin tests you'll need a debug build of Qt Creator. After finished compiling you just start Qt Creator with the option '-test all' or '-test ''PLUGINNAME''[,''TESTFUNCTION''[:''TESTDATA'']]…' with ''PLUGINNAME'' replaced by the plugin you want to test. ''TESTFUNCTION'' might contain wildcard characters. If ''TESTDATA'' is specified, it will be applied to all matching test functions.
Qt Creator's plugin unit tests are integrated into the source code of the respective plugins. To execute the plugin tests you'll need a debug build of Qt Creator. After finished compiling you just start Qt Creator with the option '-test all' or '-test ''PLUGINNAME''[,''TESTFUNCTION''[:''TESTDATA'']]…' with ''PLUGINNAME'' replaced by the plugin you want to test. ''TESTFUNCTION'' might contain wildcard characters. If ''TESTDATA'' is specified, it will be applied to all matching test functions.


Not every plugin provides integrated plugin unit tests- so for the first time run it might be a good idea to run all tests to figure out which plugin names you can use. If you want to figure out by yourself whether a plugin has tests or not check the pluginspec files inside lib/qtcreator/plugins/QtProject of Qt Creator's repository to get the plugin name you can use for the '-test' option.
Not every plugin provides integrated plugin unit tests - so for the first time run it might be a good idea to run all tests to figure out which plugin names you can use. If you want to figure out by yourself whether a plugin has tests or not check the pluginspec files inside lib/qtcreator/plugins/QtProject of Qt Creator's repository to get the plugin name you can use for the '-test' option.


== Squish Tests ==
== Squish Tests ==


Qt Creator is being tested using "Squish by Froglogic":http://www.froglogic.com/squish/gui-testing/index.php. You can find the scripts in tests/system of Qt Creator's git repository. See the "README":http://qt.gitorious.org/qt-creator/qt-creator/blobs/master/tests/system/README on how to run them.
Qt Creator is being tested using [http://www.froglogic.com/squish/gui-testing/index.php Squish by Froglogic]. You can find the scripts in tests/system of Qt Creator's git repository. See the [https://code.qt.io/cgit/qt-creator/qt-creator.git/tree/tests/system/README README] on how to run them.


== Manual Testing ==
== Manual Testing ==


[[Qt_Creator_ManualTests_Installer|Installer]]
[[Qt_Creator_ManualTests_Installer|Installer]]<br/>
[[Qt_Creator_ManualTests_ProjectsAndCode|Projects and Code]]
[[Qt_Creator_ManualTests_ProjectsAndCode|Projects and Code]]<br/>
[[Qt_Creator_ManualTests_ToolsIntegration|Tools Integration]]
[[Qt_Creator_ManualTests_ToolsIntegration|Tools Integration]]<br/>
[[Qt_Creator_ManualTests_DebuggerGdb|Debugger g++/gdb]]
[[Qt_Creator_ManualTests_DebuggerGdb|Debugger g++/gdb]]<br/>
[[Qt_Creator_ManualTests_DebuggerCdb|Debugger MSVC/cdb]]
[[Qt_Creator_ManualTests_DebuggerCdb|Debugger MSVC/cdb]]<br/>
[[Qt_Creator_ManualTests_DebuggerLldb|Debugger lldb]]
[[Qt_Creator_ManualTests_DebuggerLldb|Debugger lldb]]<br/>
[[Qt_Creator_ManualTests_QtQuick|Qt Quick]]
[[Qt_Creator_ManualTests_QtQuick|Qt Quick]]<br/>
[[Qt_Creator_ManualTests_Android|Android]]
[[Qt_Creator_ManualTests_Android|Android]]<br/>

Revision as of 15:22, 5 March 2015


Qt Creator Quality Assurance

Auto Tests

Qt Creator's auto tests are actually executed internally only, but you can run them for yourself as well. You can find the auto tests in tests/auto of Qt Creator's git repository. To run them you need to compile Qt Creator first. It's recommended to use a debug build (for Qt Creator as well as for the auto tests), but you should be able to get most of the tests run on a release build as well. Compile the auto tests by running

qmake -r CONFIG+=debug QTCREATOR_REPOSITORY/tests/auto/auto.pro

and

make

afterwards. If you're using shadow-builds you must pass the IDE_BUILD_TREE variable pointing to the build directory of your Qt Creator build to the qmake call. Sometimes it is wise to use

make -i

to compile ignoring potential errors. All auto test executables can be found afterwards inside their respective folders named 'tst_*' (or 'tst_*.exe' on Windows).

Plugin Tests

Qt Creator's plugin unit tests are integrated into the source code of the respective plugins. To execute the plugin tests you'll need a debug build of Qt Creator. After finished compiling you just start Qt Creator with the option '-test all' or '-test PLUGINNAME[,TESTFUNCTION[:TESTDATA]]…' with PLUGINNAME replaced by the plugin you want to test. TESTFUNCTION might contain wildcard characters. If TESTDATA is specified, it will be applied to all matching test functions.

Not every plugin provides integrated plugin unit tests - so for the first time run it might be a good idea to run all tests to figure out which plugin names you can use. If you want to figure out by yourself whether a plugin has tests or not check the pluginspec files inside lib/qtcreator/plugins/QtProject of Qt Creator's repository to get the plugin name you can use for the '-test' option.

Squish Tests

Qt Creator is being tested using Squish by Froglogic. You can find the scripts in tests/system of Qt Creator's git repository. See the README on how to run them.

Manual Testing

Installer
Projects and Code
Tools Integration
Debugger g++/gdb
Debugger MSVC/cdb
Debugger lldb
Qt Quick
Android