- I've created simple hello word cpp app.
- Compiled it by passing gcc --coverage flag
- Executed the executable
- Generated coverage by invoking
lcov --directory . --capture --output-file ic.info
- Generated html based report by genhtml
genhtml -o html/ ic.info
Now the question. No matter how many times I'm running the executable I'm getting always the same result, i.e. the same coverage of lines and functions. Should it increase the line coverage for every execution ? Do I get something wrong ?
If lcov
generates coverage only for one execution, then how can I generate coverage for all executions that I've done ?