Online or real-time coverage information

Jan 22, 2016 at 1:30 PM
Hi,

Just out of curiosity, do you have any insights if it would be possible to have coverage information while the application is running and not when it ends?

Reason I am asking is to see if I can get something similar like this: https://www.rapitasystems.com/blog/tetris_coverage_challenge

Thanks!
Coordinator
Jan 28, 2016 at 8:53 PM
Hello,

I think it is possible inside ExecutedAddressManager class. ExecutedAddressManager::MarkAddressAsExecuted is called each time a new line is executed.
To create a report inside this function, you can have a look at ExecutedAddressManager::CreateCoverageData.

Let me know if you need more information,

OpenCppCoverage
Feb 2, 2016 at 9:18 AM
Thanks!

I will look into it for sure as soon as I manage to build the complete project :)

Best
Coordinator
Feb 7, 2016 at 12:21 PM
Hello,

Some information about OpenCppCoverage 0.9.4:
  • Compiled with Visual Studio 2015
  • boost_1_59_0
  • ctemplate-2.2: You need to change some settings in the project and change output type from exe to dll for template_test_util_test.exe.
  • gmock-1.7 (For unit tests)
  • poco-1.4.6p2
  • protobuff-2.6.1
Hope that help,

OpenCppCoverage
Marked as answer by OpenCppCoverage on 3/6/2016 at 3:30 AM