- gtest cases
- gmock cases
- code coverage report
mkdir build
cd build/
cmake ..
make
../runTest.sh
../runTest.sh --color -VV
- 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
bazel build //src:mainapp
bazel test //src/unitTest:nonVirualFuncMock_test
- bazel test //src/unitTest:all
- bazel test //...