[Interest] Code coverage with QtCreator

Konstantin Tokarev annulen at yandex.ru
Tue Sep 3 16:52:03 CEST 2019



03.09.2019, 17:47, "Jérôme Godbout" <godboutj at amotus.ca>:
> Hi,
>
> Is there a good way to make code coverage with QMake and Qt Creator? I will probably switch my codes to CMake with Qt 6, but for the time being I will leave my projects as QMake and we do not use Visual Studio on Windows either. Any free tools that can run on Windows, Linux, MacOS ?
>
> I have seen a few tools that are expensive or only work for GCC, but found nothing that is open source and can run multiple platform so far.

You can try TestCocoon - it has easy to use integration with qmake:
https://github.com/testcocoon/testcocoon

It's an old version of what is called Squish Coco now. You'll have to build it from source. Build process produces nice pdf documentation.


-- 
Regards,
Konstantin



More information about the Interest mailing list