C/C++ unit test demo using Google Test deployed to GitLab CI. This is a fork of the project that used Travis CI instead.
- Licensed under BSD-3
git clone --recursive https://github.com/pothitos/gtest-demo-gitlab.git
cd gtest-demo-gitlab
mkdir build
cd build
cmake ..
make -j
./unit_tests
Here are the general instructions. In brief:
- Press the cog icon in the upper right corner of your project.
- Click on CI/CD Pipelines.
- In the Test coverage parsing field, enter the
regular expression
^TOTAL.*\s+(\d+\%)$
indicated as an example in the same page.
Except from the individual page of each build, the coverage percentage is displayed if you click on Pipelines and then Builds.