Browse Source

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"
rework
Holger Frey 7 years ago
parent
commit
8b2c6a1e24
  1. 8
      Makefile

8
Makefile

@ -52,10 +52,16 @@ clean-test: ## remove test and coverage artifacts
lint: ## check style with flake8 lint: ## check style with flake8
flake8 ordr flake8 ordr
test: ## run tests quickly with the default Python test: ## run tests quickly with the default Python, ignoring functional tests
py.test py.test
coverage: ## check code coverage quickly with the default Python 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 run --source ordr -m pytest
coverage report -m coverage report -m
coverage html coverage html