[Interest] Code coverage with QtCreator

Christian Gagneraud chgans at gmail.com
Wed Sep 4 03:25:15 CEST 2019

On Wed, 4 Sep 2019 at 03:53, Konstantin Tokarev <annulen at yandex.ru> wrote:
> 03.09.2019, 18:45, "Andy" <asmaloney at gmail.com>:
> > Not sure if it's quite what you're looking for, but I wrote up a tutorial on using gcov & lcov with Qt5 & Qt Creator:
> >
> > "Code Coverage Of Unit Tests Using Qt 5 On macOS"
> > https://asmaloney.com/2017/01/code/code-coverage-of-unit-tests-using-qt-5-on-macos/
> >
> > Might give you some ideas.
> Line-based coverage is inherently sub-par approach as compared to condition/decision coverage provided by testcocoon. However it may be possible to achieve that by using different instrumentartion options of compiler.

Branch coverage is not a break-through either...

Check out https://en.wikipedia.org/wiki/Mutation_testing and see
https://github.com/mull-project/mull/ for a clang-based implementation
that support C++.
They have a nice screenshot showing XCode integration...


More information about the Interest mailing list