[Qt-creator] Autotests in Qt Creator with CMake projects

Harald Vistnes harald.vistnes at gmail.com
Fri Aug 5 14:47:10 CEST 2016


Hi Christian,

thanks for the answer. I downloaded the example project. However, it does
not detect any Qt Tests. (In the Tests pane on the left, it says Qt Tests
(none), Quick Tests (none) and Google Tests (none).

I have Qt Creator 4.1 beta1 and CMake 3.0.0. The AutoTest plugin is
enabled.

Harald


2016-08-05 13:17 GMT+02:00 Christian Stenger <Christian.Stenger at qt.io>:

> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/qt-creator/attachments/20160805/175c0c3f/attachment.html>


More information about the Qt-creator mailing list