2015-12-28 10:05:16 +01:00
|
|
|
# Makefile for gwift
|
|
|
|
#
|
|
|
|
|
|
|
|
# User-friendly check for coverage
|
|
|
|
ifeq ($(shell which coverage >/dev/null 2>&1; echo $$?), 1)
|
|
|
|
$(error The 'coverage' command was not found. Make sure you have coverage installed)
|
|
|
|
endif
|
|
|
|
|
|
|
|
.PHONY: help coverage
|
|
|
|
|
|
|
|
help:
|
|
|
|
@echo " coverage to run coverage check of the source files."
|
|
|
|
|
|
|
|
coverage:
|
2015-12-28 15:13:51 +01:00
|
|
|
coverage run --source='gwift' gwift/manage.py test; coverage report; coverage html;
|
2015-12-28 15:12:23 +01:00
|
|
|
@echo "Testing of coverage in the sources finished."
|