From 62bd558ba78bc170744cd071fe1688e90e6e1785 Mon Sep 17 00:00:00 2001 From: Andrew Svetlov Date: Wed, 2 Sep 2015 13:37:49 -0400 Subject: [PATCH] Use pytest plugin for collectingg coverage info --- Makefile | 14 ++++---------- requirements-dev.txt | 1 + 2 files changed, 5 insertions(+), 10 deletions(-) diff --git a/Makefile b/Makefile index a782364..6777d4a 100644 --- a/Makefile +++ b/Makefile @@ -1,23 +1,17 @@ # Some simple testing tasks (sorry, UNIX only). -FLAGS= - - flake: flake8 aiohttp_security tests test: flake - py.test -s $(FLAGS) ./tests/ + py.test -s -q ./tests/ -vtest: flake develop - py.test -s -v $(FLAGS) ./tests/ +vtest: flake + py.test -s ./tests/ cov cover coverage: flake - @coverage erase - @coverage run -m py.test -s $(FLAGS) tests - @coverage report - @coverage html + py.test -s ./tests/ --cov=aiohttp_security --cov=tests --cov-report=html --cov-report=term @echo "open file://`pwd`/coverage/index.html" clean: diff --git a/requirements-dev.txt b/requirements-dev.txt index f3d187f..570d782 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -1,6 +1,7 @@ -e . flake8 pytest +pytest-cov coverage sphinx alabaster>=0.6.2