How to generate and view code coverage using Qt Creator with MinGW on Windows?
I'm already able to generate it using GCOV and LCOV on OS X with the following flags in my .pro
file:
mac {
QMAKE_CXXFLAGS += --coverage
QMAKE_LFLAGS += --coverage
}
I have accomplished that by following this tutorial.
What tools/flags should I use to generate and view the code coverage on Windows?
Note: on OS X I'm using Clang.
Update:
I have successfully generated the GCNO and GCDA files, but I don't know how can I access/visualize the code coverage properly.
As far as I know, LCOV doesn't work on Windows.
I found the Ported to Windows LCOV Code Coverage tool project on Github and I will try to use it.
Some related questions: