This is a C++ application, with basic unit tests, for which coverage is uploaded to Codecov on a daily basis. It can also serve as an example for how to integrate Codecov into your C++ project. If the build is passing for this project, then Codecov's C++ report processing is functional and correct on codecov.io.
This project is written in C++ 11
and it is built using Clang++
. Unit test are written using the Catch2
framework and coverage reports are generated using the gcov
CLI.
Run unit tests inside a Docker container
docker-compose up
Compile Test Binary
g++ -std=c++11 -o TestBinary -fprofile-arcs -ftest-coverage test/test_index.cpp
Run Test Binary
./TestBinary
Generate Report
gcov -o . test/test_index.cpp
If you've discovered an issue with this repository or with C++ processing in general, it is recommended to email [email protected] rather than post an issue here. This repository will not be checked regularly for open issues.
Contributions are welcome! If you'd like to contribute to this repository, feel free to open a pull request or flag an issue. If you would like to contribute a new lanaguage standard, you can get more information here.