From 99e906788261ce7b7dff2a25fefbc3cd5514ab64 Mon Sep 17 00:00:00 2001 From: Holger Frey Date: Thu, 16 Sep 2021 11:14:36 +0200 Subject: [PATCH] updated makefile, adding more pytest flags --- Makefile | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/Makefile b/Makefile index cea9532..177584c 100644 --- a/Makefile +++ b/Makefile @@ -56,17 +56,22 @@ lint: ## reformat with black and check style with flake8 black ordr3 tests flake8 ordr3 tests -test: lint ## run tests quickly with the default Python - pytest tests -x --disable-warnings -m "not fun" +test: lint ## run tests quickly, stop on first error + pytest tests -x -l --last-failed --disable-warnings -m "not fun" -testall: lint ## run tests quickly with the default Python - pytest tests +testfun: lint ## run functional tests, stop on first error + pytest tests -x -l -m "fun" -testfun: lint ## run tests quickly with the default Python - pytest tests -x -m "fun" +testall: lint ## run all tests + pytest tests -l -coverage: lint ## full test suite, check code coverage and open coverage report - pytest tests --cov=ordr3 -m "fun" +coverage: lint ## functional test suite, check code coverage and open coverage report + pytest tests --cov=ordr3 -l -m "fun" + coverage html + $(BROWSER) htmlcov/index.html + +coverall: lint ## full test suite, check code coverage and open coverage report + pytest tests --cov=ordr3 -l coverage html $(BROWSER) htmlcov/index.html