Skip to content

Commit

Permalink
make coverage work
Browse files Browse the repository at this point in the history
  • Loading branch information
loechel committed Aug 10, 2017
1 parent b8b5ef7 commit 1f79ce9
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 2 deletions.
3 changes: 2 additions & 1 deletion CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ New features:

Bug fixes:

- *add item here*
- Code Cleanup and enforcing Code Convertions
[loechel]


1.2.5 (2017-02-12)
Expand Down
14 changes: 13 additions & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ not_skip =
__init__.py

skip =
bootstrap-buildout.py
bootstrap.py

[flake8]
exclude =
Expand All @@ -34,3 +34,15 @@ norecursedirs = fixures

isort_ignore =
bootstrap-buildout.py

[coverage:run]
branch = True
source = lib
omit =
bootstrap.py

[coverage:report]
precision = 2

[coverage:html]
directory = reports/coverage
3 changes: 3 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ commands =
mkdir -p {toxinidir}/reports/coverage {toxinidir}/reports/pytest
pytest --cov=lib --cov-report=xml --html={toxinidir}/reports/pytest/report-{envname}.html --self-contained-html lib/diazo/tests {posargs}

setenv =
COVERAGE_FILE=.coverage.{envname}

deps =
pdbpp
pytest
Expand Down

0 comments on commit 1f79ce9

Please sign in to comment.