[Qt-creator] Autotests in Qt Creator with CMake projects
Christian Stenger
Christian.Stenger at qt.io
Fri Aug 5 13:17:48 CEST 2016
Hi,
There should be no special requirement for the folder structure. Basically this should work for CMake based projects as well.
Have a look at the example project provided in
https://bugreports.qt.io/browse/QTCREATORBUG-15813
This one works as expected and might give a hint how to do it.. If this does not help (or you have suggestions/recommendations to improve the CMake support inside the AutoTest plugin), please file a bugreport (or suggestion) at https://bugreports.qt.io .
If possible add your project (or a similar minimal example project) which is expected to work and I'll have a look.
Kind regards,
Christian
________________________________________
From: Qt-creator <qt-creator-bounces+christian.stenger=qt.io at qt-project.org> on behalf of Harald Vistnes <harald.vistnes at gmail.com>
Sent: Friday, August 5, 2016 1:11:11 PM
To: qt-creator at qt-project.org
Subject: [Qt-creator] Autotests in Qt Creator with CMake projects
Is it possible to run autotests (Qt Test) in Qt Creator with CMake projects? I could only find info for QMake projects here http://doc.qt.io/qtcreator/creator-autotest.html.
I tried with the add_test() in the CMakeLists.txt file, but QtC did not seem to pick it up. Are there some requirements on the folder structure for autotests?
Thanks,
Harald
More information about the Qt-creator
mailing list