Please follow either the Linux, macOS, or Windows guides to setup your environment.
With gcc as your compiler, install gcovr to generate coverage profiles:
gcc
gcovr
sudo apt install gcovr
pacman -Su python3-pip && pip3 install gcovr
brew install gcovr
With clang, you need llvm installed:
clang
llvm
sudo apt install llvm
pacman -Su mingw-w64-x86_64-llvm
xcode-select --install
cmake -DCMAKE_BUILD_TYPE=Debug -DWITH_COVERAGE=ON -DWITH_TESTS=ON -DWITH_GUI_TESTS=ON -DWITH_XC_ALL=ON ..
make -j4 && make coverage
There was an error while loading. Please reload this page.