Restructuring: Generate coverage report
This commit is contained in:
parent
cf62e8ce64
commit
cacfa694b0
|
@ -2,11 +2,11 @@
|
||||||
make clean
|
make clean
|
||||||
rm -r coverage_report
|
rm -r coverage_report
|
||||||
make test CXXFLAGS="-Wall -Wextra -pedantic -g -fprofile-arcs -ftest-coverage"
|
make test CXXFLAGS="-Wall -Wextra -pedantic -g -fprofile-arcs -ftest-coverage"
|
||||||
gcov src/*.cpp -o src/
|
gcov lib/*.cpp -o lib/
|
||||||
lcov --directory ./ --capture --output-file lcov.info -b ./
|
lcov --directory ./ --capture --output-file lcov.info -b ./
|
||||||
genhtml lcov.info -o coverage_report
|
genhtml lcov.info -o coverage_report
|
||||||
rm src/*.gcda
|
rm lib/*.gcda
|
||||||
rm src/*.gcno
|
rm lib/*.gcno
|
||||||
rm test/*.gcda
|
rm test/*.gcda
|
||||||
rm test/*.gcno
|
rm test/*.gcno
|
||||||
rm lcov.info
|
rm lcov.info
|
||||||
|
|
Loading…
Reference in New Issue