X-Git-Url: https://git.aubio.org/?p=aubio.git;a=blobdiff_plain;f=Makefile;h=efeae2e390d0cfe0ab93bd5084e720c8d2ad4b04;hp=8dcbee8b901b5629d7939601b1462ef4c68efa3a;hb=639bf5e2c6d2a5aa0fa456ccb31313e77e531ba0;hpb=dfa4095daba45357b53d619f55dd3b90085ef792;ds=sidebyside diff --git a/Makefile b/Makefile index 8dcbee8b..efeae2e3 100644 --- a/Makefile +++ b/Makefile @@ -234,6 +234,23 @@ test_python_only_clean: test_python_only \ uninstall_python \ check_clean_python +coverage: export CFLAGS=--coverage +coverage: export LDFLAGS=--coverage +coverage: force_uninstall_python deps_python \ + clean_python clean distclean + pip install -v -e . + coverage run `which nose2` + +coverage_report: coverage + lcov --capture --no-external --directory . --output-file build/coverage.info + genhtml build/coverage.info --output-directory lcov_html + mkdir -p gcovr_html/ + gcovr -r . --html --html-details \ + --output gcovr_html/index.html \ + --exclude ".*tests/.*" --exclude ".*examples/.*" + coverage report + coverage html + sphinx: configure $(WAFCMD) sphinx $(WAFOPTS)