Commit 1b904eb1 authored by Taddeüs Kroes's avatar Taddeüs Kroes

Moved code coverage configuration into .coveragerc file.

parent 9e8cbbdc
[run]
branch = true
omit =
/usr/share/pyshared/*
test.py
tests/*
[html]
directory = coverage
TEST := test.py TEST := test.py
COVERAGE_DIR := coverage COVERAGE_DIR := coverage
COVERAGE_OMIT=/usr/share/pyshared/*,test.py,tests/*
test: test:
@pyrg $(TEST) @pyrg $(TEST)
coverage: coverage: covclean
coverage erase
@if [ -d $(COVERAGE_DIR) ]; then rm -rf $(COVERAGE_DIR)/* \
else mkdir $(COVERAGE_DIR); fi
coverage run test.py coverage run test.py
coverage html --omit=$(COVERAGE_OMIT) -d $(COVERAGE_DIR) coverage report
coverage report --omit=$(COVERAGE_OMIT) coverage html
clean: covclean:
coverage erase coverage erase
rm -rf $(COVERAGE_DIR) `find -name \*.pyc` rm -rf $(COVERAGE_DIR)
clean: covclean
rm `find -name \*.pyc`
.PHONY: test clean coverage .PHONY: test clean coverage covclean
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment