Skip to content

Sample how-to build code coverage in CMake projects with GoogleTest

Notifications You must be signed in to change notification settings

andreymasloboev/code_coverage

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Tests Code Coverage

Sample how-to build code coverage (lcov and gcov reports) in cmake projects with GoogleTest

Dependencies

Packages gcc compiler, gcovr, lcov, cmake, google test

How to use:

  1. git clone https://github.com/andreymasloboev/code_coverage.git
  2. cd code_coverage
  3. mkdir build
  4. cd build
  5. cmake ..
  6. cmake --build .
  7. cmake --build . --target coverage-gcov
  8. cmake --build . --target coverage-lcov
  9. open file build/coverage-lcov/index.html

Alt text

Releases

No releases published

Packages

No packages published