From 81f33fc41bd13b0861769d07b02e2f11d70f05c9 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Mon, 30 Jan 2017 19:05:19 +0100 Subject: Makefile: add coverage support --- Makefile.example | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'Makefile.example') diff --git a/Makefile.example b/Makefile.example index 59f82d7af..d251155ed 100644 --- a/Makefile.example +++ b/Makefile.example @@ -47,6 +47,11 @@ update: clean syncdb compilemessages collectstatic test: clean cd $(project); $(PYTHON) manage.py test $(apps) +coverage: clean + cd $(project); coverage run --source="ishtar_common,archaeological_operations,\ + archaeological_context_records,archaeological_files,archaeological_finds,archaeological_warehouse,\ + archaeological_files_pdl" ./manage.py test $(apps) && coverage report + test_gitlab: clean # test migrations cd $(project); $(PYTHON) ./manage.py syncdb --noinput -- cgit v1.2.3