Skip to content

Commit

Permalink
[toolchain] require 95% code coverage to pass tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefan Hoelzl committed Jun 30, 2018
1 parent 21a2337 commit 5d3e309
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[report]
fail_under = 95

[html]
directory = .htmlcov
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ fancy_dict.egg-info
docs/_build
.mypy_cache
.coverage
.covhtml
10 changes: 7 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,22 @@ default: all;

.PHONY: clean
clean:
rm -rf build dist fancy_dict.egg-info .mpy_cache .pytest_cache docs/_build
rm -rf build dist fancy_dict.egg-info .mpy_cache .pytest_cache docs/_build .htmlcov

.PHONY: tests.unit
tests.unit:
PYTHONPATH=. pytest tests/unit --cov fancy_dict --cov-report term-missing
PYTHONPATH=. pytest tests/unit

.PHONY: tests.coverage
tests.coverage:
PYTHONPATH=. pytest --cov fancy_dict --cov-report html:.covhtml

.PHONY: tests.lint
tests.lint:
PYTHONPATH=. pytest tests/lint

.PHONY: tests
tests: tests.unit tests.lint
tests: tests.unit tests.lint tests.coverage

.PHONY: release.build
release.build:
Expand Down

0 comments on commit 5d3e309

Please sign in to comment.