-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Generating Test Coverage Statistics
Jonathan White edited this page Apr 25, 2019
·
9 revisions
Please follow either the Linux, OS X, or Windows guides to setup your environment.
Obtain the following packages prior to beginning the coverage process: gcov and lcov
Ubuntu Linux: sudo apt install gcovr lcov
MSYS2: pacman -Su mingw-w64-x86_64-lcov
macOS: brew install gcovr lcov
- Make a build directory for cmake and enter it
cmake -DCMAKE_BUILD_TYPE=Coverage -DWITH_COVERAGE=ON -DWITH_TESTS=ON -DWITH_GUI_TESTS=ON ..
make -j4
make kp_coverage
- Open up ./coverage/index.html to view the coverage report
Copyright (C) 2016-2023 KeePassXC Team