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
black ordr3 tests black ordr3 tests
flake8 ordr3 tests flake8 ordr3 tests
test: lint ## run tests quickly with the default Python test: lint ## run tests quickly, stop on first error
pytest tests -x --disable-warnings -m "not fun" pytest tests -x -l --last-failed --disable-warnings -m "not fun"
testall: lint ## run tests quickly with the default Python testfun: lint ## run functional tests, stop on first error
pytest tests pytest tests -x -l -m "fun"
testfun: lint ## run tests quickly with the default Python testall: lint ## run all tests
pytest tests -x -m "fun" pytest tests -l
coverage: lint ## full test suite, check code coverage and open coverage report coverage: lint ## functional test suite, check code coverage and open coverage report
pytest tests --cov=ordr3 -m "fun" 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 coverage html
$(BROWSER) htmlcov/index.html $(BROWSER) htmlcov/index.html

Loading…
Cancel
Save