Qt Unit test framework
-
wrote on 6 Oct 2022, 09:33 last edited by
Hi, We are developing a QT QML project for the Boot2Qt 6.2.1 Toradex Verdin-iMX8MP tool chain and the code will run on a board loaded with embedded linux. Our code has QML based GUI and QT C++ backend to control the embedded peripherals (ADC, DAC, PWM, Motors etc). We need to use QT's unit test framework to test the front end QML GUI and backend QT C++ code. I found there are 2 QT Unit test frameworks 1. QT Test 2. Qt Quick Test. Please suggest which one to use to test the GUI and backend. Please also share some tutorial/blog links to use the framework as I am the beginner.
Thanks,
Anuj -
Qt test is for the C++ part, Qt Quick test is for QML.
You can also use external tools for unit testing (google test, squish).
-
Hi,
In addition to what @sierdzio wrote, Qt's documentation for each module gives you examples to get you started.
2/3