-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Generating Test Coverage Statistics
Jonathan White edited this page Sep 10, 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 python3-pip && pip3 install gcovr
macOS: brew install gcovr lcov
- Make a build directory for cmake and enter it
cmake -DCMAKE_BUILD_TYPE=Debug -DWITH_COVERAGE=ON -DWITH_TESTS=ON -DWITH_GUI_TESTS=ON -DWITH_XC_ALL=ON ..
make coverage -j4
- Open up ./coverage/index.html to view the coverage report
Copyright (C) 2016-2023 KeePassXC Team