Browse Source

updated makefile, adding more pytest flags

funding-tag
Holger Frey 4 years ago
parent
commit
99e9067882
  1. 21
      Makefile

21
Makefile

@ -56,17 +56,22 @@ lint: ## reformat with black and check style with flake8 @@ -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

Loading…
Cancel
Save