How to use gcov for test coverage where C programs are tested using perl scripts ?
-
21-04-2021 - |
Domanda
I'm currently working on gcov and I need to pointers to study gcov. Perl scripts are being used to automate testing and I need to use gcov for test coverage. Apart from the gcov documentation what are the other things I should be aware of ? How do I proceed ?
Soluzione
Devel::Cover has gcov support.
cd project_root
perl Makefile.PL
cover -test -gcov
$BROWSER cover_db/coverage.html
cover -delete
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow