Skip to content

Commit

Permalink
Add html coverage reports
Browse files Browse the repository at this point in the history
  • Loading branch information
tobiashienzsch committed May 21, 2021
1 parent 9eb0724 commit 7355854
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 9 deletions.
20 changes: 12 additions & 8 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,34 +2,38 @@ PACKAGE_NAME = dsp
TEST_DIRECTORY = tests
DOC_DIRECTORY = docs

.PHONY:
.PHONY: default
default: clean test lint

.PHONY:
.PHONY: install
install:
@pip install .

.PHONY:
.PHONY: deps
deps:
@pip install -r requirements.txt

.PHONY:
.PHONY: develop
develop: deps
@pip install -e .

.PHONY:
.PHONY: test
test:
@pytest -v --cov-report term-missing --cov=$(PACKAGE_NAME) $(TEST_DIRECTORY)

.PHONY:
.PHONY: coverage
coverage:
@pytest -v --cov-report html --cov=$(PACKAGE_NAME) $(TEST_DIRECTORY)

.PHONY: lint
lint:
@flake8 $(PACKAGE_NAME) $(TEST_DIRECTORY) examples
@pylint --disable=fixme $(PACKAGE_NAME) $(TEST_DIRECTORY)


.PHONY:
.PHONY: clean
clean:
rm -rf $(PACKAGE_NAME)/__pycache__
rm -rf $(TEST_DIRECTORY)/__pycache__
rm -rf .pytest_cache
rm -rf .coverage
rm -rf .coverage htmlcov
3 changes: 2 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ scipy
numba

pytest
pytest-cov

autopep8
pylint
pytest-cov
flake8

0 comments on commit 7355854

Please sign in to comment.