summaryrefslogtreecommitdiff
path: root/src/components/qt_hmi/test/readme.txt
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/qt_hmi/test/readme.txt')
-rw-r--r--src/components/qt_hmi/test/readme.txt14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/components/qt_hmi/test/readme.txt b/src/components/qt_hmi/test/readme.txt
new file mode 100644
index 000000000..e169a4eb8
--- /dev/null
+++ b/src/components/qt_hmi/test/readme.txt
@@ -0,0 +1,14 @@
+A few comments on test writting for QML Unit Testing
+
+- set TestCase inside Item - this allows to send Mouse and keyboard events to controls
+- content of QML is reachable directly from tests. It is necessary to add getters into
+ source QML file to handle internal items
+- test execution order is alfabetical. If you need manage this order use numbers in test function names
+- all functions that starts with "test_" prefix is treated as test case
+- all files that starts with "tst_" prefix will be executed as test set
+- for async testing use timer
+- each system's entity that changes during RPC must be tested
+- test incoming arguments is not necessary as it will be verified by Qt abstraction layer
+- run test with following command:
+ "./qt_hmi_test -import ../git push qml_model_qt5/"
+