This repository demonstrates how to:
- Build a C++ project with CMake and GoogleTest
- Generate code coverage reports using
lcovandgenhtml - Automate everything via GitHub Actions
- ✅ Unit tests with GoogleTest
- ✅ Coverage tracking via
--coverageflags - ✅ 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%)
- Check the open PRs for this repository to see how it works in practice!