cppcheck/generate_coverage_report

12 lines
296 B
Bash
Executable File

#!/bin/bash
make clean
rm -r coverage_report
make test CXXFLAGS="-Wall -Wextra -pedantic -g -fprofile-arcs -ftest-coverage"
gcov src/*.cpp -o src/
lcov --directory ./ --capture --output-file lcov.info -b ./
genhtml lcov.info -o coverage_report
rm src/*.gcda
rm src/*.gcno
rm lcov.info
make clean