Unit Testing from Qt Creator

  Рет қаралды 13,052

KDAB

KDAB

Күн бұрын

Пікірлер: 18
@ezekieloruven
@ezekieloruven Жыл бұрын
As someone who is just getting familiar with the Qt Test Framework, this video was absolutely invaluable. In short work you explained the whole process with modern Qt tools and now my testing is working great! THANK YOU for the CMake code at the end, especially! This is a really nice feature of Qt Creator!
@siddmohsin
@siddmohsin Жыл бұрын
How do we run same test which you describe in example on iOS or any OS who does not have console. Does Qt Creator give any way to run ?
@KDABtv
@KDABtv Жыл бұрын
Hi :) Let me admit I've never done this. I think that you need to set up a new kit for cross compiling: Have a look at this page: doc.qt.io/qtcreator/creator-developing-ios.html Cheers, Jesper.
@mugiseyebrows
@mugiseyebrows 5 ай бұрын
Correction: only private slots run as tests, not all slots, so it does matter if slot is public or private
@blackiedk
@blackiedk 5 ай бұрын
OK, I stand corrected. Thanks
@khoinguyenmai4684
@khoinguyenmai4684 Жыл бұрын
How can you create a test folder?
@KDABtv
@KDABtv Жыл бұрын
Hi! If you are asking how to put your tests in a sub-folder, then in your CMakeLists.txt file, add a line like this: add_subdirectory(tests) and in the tests subdirectory, you need a CMakeLists.txt file for your tests. Cheers Jesper.
@abhishekgoswami4598
@abhishekgoswami4598 2 жыл бұрын
I have query. i have written desktop app using pyqt. but did not find much information about Qtest in python
@KDABtv
@KDABtv 2 жыл бұрын
Hi! Normally python apps use the native unittest framework for tests. You can find more information here docs.python.org/3/library/unittest.html Hopefully this helps!
@piergiorgiovalli5220
@piergiorgiovalli5220 Жыл бұрын
Always the Best ☺️
@keshavbdesai
@keshavbdesai 2 жыл бұрын
I cannot see my test cases under QtTest on the Right Column Not sure what is the issue
@blackiedk
@blackiedk 2 жыл бұрын
I'm afraid I have no idea, except maybe the CMake or QMake project hasn't been parsed properly by Qt Creator. I would try and see if they can be executed correctly from the command line, and if not that would hopefully point to the culprit. Cheers Jesper.
@kainell1000
@kainell1000 Жыл бұрын
same thing here :((
@rusdzo
@rusdzo Жыл бұрын
This video was useful
@KDABtv
@KDABtv Жыл бұрын
Glad you like it!
@robbybobbyhobbies
@robbybobbyhobbies 2 жыл бұрын
Why do you want us to look at the top-left corner all the time? Seriously, black and white main view, only bit of colour is a freaking annoying moving logo. We know who you are. Rant over, back to enjoying the code.
Qt Creator and AI - April Fool's Video
12:45
KDAB
Рет қаралды 1,7 М.
УНО Реверс в Амонг Ас : игра на выбывание
0:19
Фани Хани
Рет қаралды 1,3 МЛН
Who is More Stupid? #tiktok #sigmagirl #funny
0:27
CRAZY GREAPA
Рет қаралды 10 МЛН
ССЫЛКА НА ИГРУ В КОММЕНТАХ #shorts
0:36
Паша Осадчий
Рет қаралды 8 МЛН
Do you even test? (your code with CMake)
12:38
Code for yourself
Рет қаралды 27 М.
Qt Testen Praktisch
39:53
Edzard Höfig
Рет қаралды 2,8 М.
1 Atheist vs 25 Christians (feat. Alex O'Connor) | Surrounded
1:33:20
AI Is Making You An Illiterate Programmer
27:22
ThePrimeTime
Рет қаралды 167 М.
Pytest Tutorial - How to Test Python Code
1:28:39
freeCodeCamp.org
Рет қаралды 240 М.
УНО Реверс в Амонг Ас : игра на выбывание
0:19
Фани Хани
Рет қаралды 1,3 МЛН