From 8b2c6a1e24318a1b896e588102178901bf251989 Mon Sep 17 00:00:00 2001 From: Holger Frey Date: Mon, 26 Mar 2018 10:02:03 +0200 Subject: [PATCH] new make command for coverage "make coverage" will exclude functional tests to report only unit tests. For a full coverage report including functional tests use "make fcoverage" --- Makefile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 4775771..eee7284 100644 --- a/Makefile +++ b/Makefile @@ -52,10 +52,16 @@ clean-test: ## remove test and coverage artifacts lint: ## check style with flake8 flake8 ordr -test: ## run tests quickly with the default Python +test: ## run tests quickly with the default Python, ignoring functional tests py.test coverage: ## check code coverage quickly with the default Python + coverage run --source ordr -m pytest --ignore ordr/tests/_functional/ + coverage report -m + coverage html + $(BROWSER) htmlcov/index.html + +fcoverage: ## check code coverage with the default Python and functional tests coverage run --source ordr -m pytest coverage report -m coverage html