I am just starting up a new project that needs some cross-platform GUI, and we have chosen Qt as the GUI-framework.
We need a unit-testing framework, too. Until about a year ago we used an in-house developed unit-testing framework for C++-projects,…
I got my Qt project and I'm using Qt Creator. I want to unit-test all my code.
However I'm quite new at QTestLib framework but everyone recommended it for testing Qt-based source. Now I'm a little confused how to structure test project with app…
Qt comes with QTest, and there are some docs: for example, an official tutorial.
However, QTest encourages you to organize unit tests as separate executables. There is special macro for this, that generates main(): QTEST_MAIN()
To be honest, I…
Maybe I'm missing something, but it seems really stupid to me that the only tutorial provided for QtTest framework has you testing the QString class.
The typical use case for unit testing is....testing classes you wrote yourself, but there is no…
I am very new to Qt and Qt Quick. I am validating the Qt Test unit testing framework for Qt Quick and I am not able to understand how to run the tests.
Here's what I have, I have created a SUBDIRS project with the following…
I started writing some tests with Qt's unit testing system.
How do you usually organize the tests? It is one test class per one module class, or do you test the whole module with a single test class? Qt docs suggest to follow the former strategy.
I…
The use case is, I have a Qt app, and I would like to automate user-style testing of it; that is, I'd like to use keyClicks(), mouseClick(), and so on, but I would like for the Qt application window to actually be displayed while this is…
In our project we are using the QtTestLib for a unit testing. The reasons are that the whole project already uses Qt whenever it's possible and it's a GUI application, so we wanted to have ability for testing GUI interfaces.
Our project is compiled…
I have to create a Unit-Test.
But first, I´ve to get clear what to do.
There is a QtQuick2-App written and now I would like to do Unit-Tests with the GUI. What are the steps for Unit-Tests with GUI? After reading the Qt-documents, I could not create…
Is there a framework to simulate a deterministically pseudorandom series of clicks imposed upon a Qt application - in order to try to trigger any memory leaks, threading errors etc - typical monkey-testing?
Some exotic, monkey use for QTestLib?
I have a C++ project that doesn't use Qt. I am using Qt Creator as my IDE because it is very convenient.
I was reading about unit testing in Qt Creator here, and I think that Qt Test seems quite good. Is there a way to use Qt Test with my non-Qt C++…
I am developing a GUI application in Qt Creator and want to write some unit tests for it.
I followed This guide to make some unit tests with QtTestlib and the program compiles fine.
But how do I run them? I would like them to be run before the GUI…
While compiling in Qt 5.9.1 version it is not working.. Any one help me to compile this TestCase in qml..
import QtQuick 2.0
import QtTest 1.1
TestCase{
function test_math() {
compare(2 + 2, 4, "2 + 2 = 4")
…
I want to instantly fail any auto test when a warning is printed in the tested code, so that I don't miss it in the output and end up with strange test failures later on.
I thought I could use qInstallMessageHandler() for this. I modified the…