While MSVC offers code coverage analysis, I couldn't get that information out in a gcov-like format. My next attempt was to use what I already know, Clang. Clang is able to perform code coverage analysis on Linux and macOS. It seemed like a logical choice to use it on Windows as well. The idea was fueled by this article code-coverage-with-clang-on-windows.html. Under Windows, clang-cl.exe got a new option --coverage. Exactly what I was looking for and in a single flag. What else could I dream of? Adding --coverage in the CMakeLists.txt was a piece of cake. I also went crazy and added the flag only for the Windows platform. Yes, I know that was a little overstating, but I was happy.