Is there any actively supported lcov port for windows

后端 未结 4 1931
刺人心
刺人心 2021-01-03 04:33

I measure coverage for my code using gcov library and I would like to generate coverage report in user-friendly format. I\'ve found lcov utility for that, but it\'s not comp

4条回答
  •  再見小時候
    2021-01-03 04:48

    There is also a windows version of LCOV https://github.com/valbok/lcov with explanation how to use it. We had some problems to use native or another versions of LCOV. For example from here http://simply-embedded.blogspot.com/2014/07/code-coverage-html-reports-using-lcov.html

    Our flow is something like:

    1. Build a project in Windows using ARM QNX GCC compiler, collect gcno files.

    2. Copy binaries and configs to a target under QNX and run them, collect gcda files.

    3. Run LCOV (on Windows or Linux) to create reports.

    In case of using native version of LCOV, reports will be broken due to mess up of windows and linux paths and some bugs inside LCOV scripts. We had to fix the scripts a bit to avoid problems like dir duplicates, slashes, broken paths etc.

提交回复
热议问题