Skip to content

shensunbo/google_test_insight

Repository files navigation

google_test_insight

  • gtest cases
  • gmock cases
  • code coverage report

build

mkdir build
cd build/
cmake ..
make

run unit test

../runTest.sh ../runTest.sh --color -VV

gcov

  • compile with code coverage
    • cmake .. -DGEN_REPORT=ON
  • install necessary tool
    • sudo apt-get install lcov
    • sudo apt-get install xdg-utils
  • run unit test and generate coverage report ../codeCovReport.sh report

Bazel

basic build

bazel build //src:mainapp

basic test cases

bazel test //src/unitTest:nonVirualFuncMock_test

run all unit test cases

  • bazel test //src/unitTest:all
  • bazel test //...

About

google test(gtest) insight

Resources

License

Stars

1 star

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages