add tests code coverage

-closes #5862
This commit is contained in:
Daniel Agar
2016-12-07 20:17:00 +01:00
committed by Lorenz Meier
parent c2b6381759
commit 1941dfca87
4 changed files with 33 additions and 1 deletions
+7
View File
@@ -257,6 +257,13 @@ run_tests_posix: posix_sitl_default
tests: check_unittest run_tests_posix
tests_coverage:
@(PX4_CODE_COVERAGE=1 CCACHE_DISABLE=1 ${MAKE} tests)
@(lcov --directory . --capture --quiet --output-file coverage.info)
@(lcov --remove coverage.info '/usr/*' --quiet --output-file coverage.info)
#@(lcov --list coverage.info)
@(genhtml coverage.info --quiet --output-directory coverage-html)
# QGroundControl flashable firmware (currently built by travis-ci)
qgc_firmware: \
check_px4fmu-v1_default \