aboutsummaryrefslogtreecommitdiffstats
path: root/HACKING
diff options
context:
space:
mode:
authorAndre Hartmann <aha_1980@gmx.de>2018-05-10 11:32:16 +0200
committerAndré Hartmann <aha_1980@gmx.de>2019-01-08 10:08:29 +0000
commit9332828d0c16fdb48b024b54358dec54355f4998 (patch)
treea69dafef002d526f39f07f1ea6033d275a22ecf0 /HACKING
parent3a3596bb4ffa57c4822321f2bac63d69bd206cf3 (diff)
HACKING: Explain how to run unit tests
Change-Id: I3dc9f339281f96c46c05a3972783889ef88044a4 Reviewed-by: Christian Stenger <christian.stenger@qt.io> Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Diffstat (limited to 'HACKING')
-rw-r--r--HACKING25
1 files changed, 25 insertions, 0 deletions
diff --git a/HACKING b/HACKING
index e1c9477d5c..b2582a035a 100644
--- a/HACKING
+++ b/HACKING
@@ -4,3 +4,28 @@ For instructions on how to set up the Qt Creator repository to contribute
patches back to Qt Creator, please check:
https://wiki.qt.io/Setting_up_Gerrit#How_to_get_started_-_Gerrit_registration
+
+Qt Creator has integrated auto tests, and further external tests in the
+subdirectory 'tests'.
+
+To build the integrated auto tests, build Qt Creator with the additional
+QMake option TEST=1
+
+To build also the auto tests, manual tests and unit tests in the 'tests'
+subdirectory, use the QMake option BUILD_TESTS=1
+
+Afterwards:
+
+* The tests from the 'tests' subdirectory can be run as individual applications.
+ They are also available as separate Run configuration from within Qt Creator.
+
+* All the integrated tests for a specific plugin can be run with:
+
+ qtcreator -test QtSupport
+
+* To run only a specific test case, use:
+
+ qtcreator -test QtSupport,testQtOutputFormatter
+
+Note: Adding -test to Qt Creator will run the tests in a clean settingspath.
+To run them with specific settings, -settingspath /path has to be provided.