From bf24722642b2fb9546ef0a56cb99a95bce820937 Mon Sep 17 00:00:00 2001 From: Ralph Bean Date: Jun 09 2016 13:13:58 +0000 Subject: Produce a nice coverage report. --- diff --git a/.gitignore b/.gitignore index b075196..ca95deb 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,4 @@ tests/test.py .coverage docs/build/ cli/kojic +htmlcov diff --git a/Makefile b/Makefile index 09db069..d7e9861 100644 --- a/Makefile +++ b/Makefile @@ -59,12 +59,16 @@ clean: rm -f *.o *.so *.pyc *~ koji*.bz2 koji*.src.rpm rm -rf koji-$(VERSION) for d in $(SUBDIRS); do make -s -C $$d clean; done + coverage erase git-clean: @git clean -d -q -x test: PYTHONPATH=hub/.:plugins/hub/. nosetests --with-coverage --cover-package . + coverage erase + coverage html + @echo Coverage report in htmlcov/index.html subdirs: for d in $(SUBDIRS); do make -C $$d; [ $$? = 0 ] || exit 1; done