Skip to content

pothitos/gtest-demo-gitlab

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gtest-demo-gitlab

C/C++ unit test demo using Google Test deployed to GitLab CI. This is a fork of the project that used Travis CI instead.

How to build this demo

git clone --recursive https://github.com/pothitos/gtest-demo-gitlab.git
cd gtest-demo-gitlab
mkdir build
cd build
cmake ..
make -j
./unit_tests

How to report coverage to GitLab CI

Here are the general instructions. In brief:

  1. Press the cog icon in the upper right corner of your project.
  2. Click on CI/CD Pipelines.
  3. 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.

About

Unit test demo using Google Test and GitLab CI

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • CMake 59.0%
  • C++ 41.0%