Skip to content

Commit

Permalink
chore: add coverage reports
Browse files Browse the repository at this point in the history
  • Loading branch information
jerivas committed Jun 1, 2021
1 parent 9178598 commit 87cc326
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 1 deletion.
7 changes: 7 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[run]
omit =
mezzanine/*/migrations/*
*/tests/*

[report]
show_missing = True
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ Mezzanine.egg-info/
build/
docs/build/
dist/
htmlcov/
mezzanine/project_template/static/
/mezzanine/.project
/mezzanine/.pydevproject
2 changes: 1 addition & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ global-exclude __pycache__
global-exclude *.py[co]
prune .tx
prune tests
exclude .releaserc tox.ini
exclude .releaserc .isort.cfg tox.ini pytest.ini .coveragerc
8 changes: 8 additions & 0 deletions pytest.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[pytest]
addopts =
--tb short
--cov=mezzanine
--cov-report html
--cov-report term:skip-covered
# Original coverage was 54% (not great), but at least ensure we don't go below
--cov-fail-under 54
1 change: 1 addition & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ install_requires =
[options.extras_require]
testing =
pytest-django >= 4, <5
pytest-cov >= 2, < 3
codestyle =
flake8 >= 3, <4
black==20.8b1
Expand Down

0 comments on commit 87cc326

Please sign in to comment.