Skip to content
 
 

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🧪 C++ Code Coverage Example (GTest + lcov)

This repository demonstrates how to:

  • Build a C++ project with CMake and GoogleTest
  • Generate code coverage reports using lcov and genhtml
  • Automate everything via GitHub Actions

📦 What’s Inside

  • ✅ Unit tests with GoogleTest
  • ✅ Coverage tracking via --coverage flags
  • ✅ HTML report generation with genhtml
  • ✅ GitHub Actions workflow that:
    • Builds and tests your code
    • Captures and summarizes coverage
    • Uploads an artifact with the HTML report
    • Enforces a minimum coverage threshold (default: 80%)

🚀 Demo

  • Check the open PRs for this repository to see how it works in practice!

About

Because you thought testing was done when your app compiled.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages