Skip to content

Test Module

The Test module contains coroutine-friendly versions of tests macros from the QtTest module.

CMake Usage

find_package(QCoro6 COMPONENTS Test)
target_link_libraries(my-target QCoro::Test)

QMake Usage

QT += QCoroTest

Test Macros

The module contains a bunch of test macros that behave identically to their QtTest counterparts, the only difference being that they can be used inside a coroutine.

#include <QCoroTest>