Skip to content

Commit

Permalink
configure coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
Petr committed Dec 26, 2018
1 parent 1d25b5b commit 41a8b69
Show file tree
Hide file tree
Showing 8 changed files with 73 additions and 3 deletions.
26 changes: 26 additions & 0 deletions .coveragerc
@@ -0,0 +1,26 @@
# .coveragerc to control coverage.py
[run]
branch = True

[report]
# Regexes for lines to exclude from consideration
exclude_lines =
# Have to re-enable the standard pragma
pragma: no cover

# Don't complain about missing debug-only code:
def __repr__
if self\.debug

# Don't complain if tests don't hit defensive assertion code:
raise AssertionError
raise NotImplementedError

# Don't complain if non-runnable code isn't run:
if 0:
if __name__ == .__main__.:

ignore_errors = True

[html]
directory = htmlcov
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -54,3 +54,4 @@ boilerplate/

# Vim
Session.vim
/htmlcov/
4 changes: 4 additions & 0 deletions .travis.yml
Expand Up @@ -19,8 +19,12 @@ matrix:
python: 3.6
env: TOXENV=lint3

before_install:
- pip install codecov
install: pip install tox-travis
script: tox
after_success:
- codecov

deploy:
provider: pypi
Expand Down
1 change: 1 addition & 0 deletions pipcompilemulti/cli_v2.py
Expand Up @@ -48,6 +48,7 @@ def ext_skipper(func):
and skips execution for duplicates."""
@functools.wraps(func)
def wrapped():
"""Dummy docstring to make pylint happy."""
key = (OPTIONS['in_ext'], OPTIONS['out_ext'])
if key not in seen:
seen[key] = func()
Expand Down
37 changes: 36 additions & 1 deletion requirements/test.hash
@@ -1,4 +1,4 @@
# SHA1:7d4a64512c5873d9749a94fb2e798168f743a17a
# SHA1:5555308525f7232b88dccf4870881949abce2ca1
#
# This file is autogenerated by pip-compile-multi
# To update, run:
Expand All @@ -12,6 +12,38 @@ atomicwrites==1.2.1 \
attrs==18.2.0 \
--hash=sha256:10cbf6e27dbce8c30807caf056c8eb50917e0eaafe86347671b57254006c3e69 \
--hash=sha256:ca4be454458f9dec299268d472aaa5a11f67a4ff70093396e1ceae9c76cf4bbb
coverage==4.5.2 \
--hash=sha256:09e47c529ff77bf042ecfe858fb55c3e3eb97aac2c87f0349ab5a7efd6b3939f \
--hash=sha256:0a1f9b0eb3aa15c990c328535655847b3420231af299386cfe5efc98f9c250fe \
--hash=sha256:0cc941b37b8c2ececfed341444a456912e740ecf515d560de58b9a76562d966d \
--hash=sha256:10e8af18d1315de936d67775d3a814cc81d0747a1a0312d84e27ae5610e313b0 \
--hash=sha256:1b4276550b86caa60606bd3572b52769860a81a70754a54acc8ba789ce74d607 \
--hash=sha256:1e8a2627c48266c7b813975335cfdea58c706fe36f607c97d9392e61502dc79d \
--hash=sha256:2b224052bfd801beb7478b03e8a66f3f25ea56ea488922e98903914ac9ac930b \
--hash=sha256:447c450a093766744ab53bf1e7063ec82866f27bcb4f4c907da25ad293bba7e3 \
--hash=sha256:46101fc20c6f6568561cdd15a54018bb42980954b79aa46da8ae6f008066a30e \
--hash=sha256:4710dc676bb4b779c4361b54eb308bc84d64a2fa3d78e5f7228921eccce5d815 \
--hash=sha256:510986f9a280cd05189b42eee2b69fecdf5bf9651d4cd315ea21d24a964a3c36 \
--hash=sha256:5535dda5739257effef56e49a1c51c71f1d37a6e5607bb25a5eee507c59580d1 \
--hash=sha256:5a7524042014642b39b1fcae85fb37556c200e64ec90824ae9ecf7b667ccfc14 \
--hash=sha256:5f55028169ef85e1fa8e4b8b1b91c0b3b0fa3297c4fb22990d46ff01d22c2d6c \
--hash=sha256:6694d5573e7790a0e8d3d177d7a416ca5f5c150742ee703f3c18df76260de794 \
--hash=sha256:6831e1ac20ac52634da606b658b0b2712d26984999c9d93f0c6e59fe62ca741b \
--hash=sha256:77f0d9fa5e10d03aa4528436e33423bfa3718b86c646615f04616294c935f840 \
--hash=sha256:828ad813c7cdc2e71dcf141912c685bfe4b548c0e6d9540db6418b807c345ddd \
--hash=sha256:85a06c61598b14b015d4df233d249cd5abfa61084ef5b9f64a48e997fd829a82 \
--hash=sha256:8cb4febad0f0b26c6f62e1628f2053954ad2c555d67660f28dfb1b0496711952 \
--hash=sha256:a5c58664b23b248b16b96253880b2868fb34358911400a7ba39d7f6399935389 \
--hash=sha256:aaa0f296e503cda4bc07566f592cd7a28779d433f3a23c48082af425d6d5a78f \
--hash=sha256:ab235d9fe64833f12d1334d29b558aacedfbca2356dfb9691f2d0d38a8a7bfb4 \
--hash=sha256:b3b0c8f660fae65eac74fbf003f3103769b90012ae7a460863010539bb7a80da \
--hash=sha256:bab8e6d510d2ea0f1d14f12642e3f35cefa47a9b2e4c7cea1852b52bc9c49647 \
--hash=sha256:c45297bbdbc8bb79b02cf41417d63352b70bcb76f1bbb1ee7d47b3e89e42f95d \
--hash=sha256:d19bca47c8a01b92640c614a9147b081a1974f69168ecd494687c827109e8f42 \
--hash=sha256:d64b4340a0c488a9e79b66ec9f9d77d02b99b772c8b8afd46c1294c1d39ca478 \
--hash=sha256:da969da069a82bbb5300b59161d8d7c8d423bc4ccd3b410a9b4d8932aeefc14b \
--hash=sha256:ed02c7539705696ecb7dc9d476d861f3904a8d2b7e894bd418994920935d36bb \
--hash=sha256:ee5b8abc35b549012e03a7b1e86c09491457dba6c94112a2482b18589cc2bdb9
mock==2.0.0 \
--hash=sha256:5ce3c71c5545b472da17b72268978914d0252980348636840bd34a00b5cc96c1 \
--hash=sha256:b158b6df76edd239b8208d481dc46b6afd45a846b7812ff0ce58971cf5bc8bba
Expand All @@ -31,6 +63,9 @@ pluggy==0.8.0 \
py==1.7.0 \
--hash=sha256:bf92637198836372b520efcba9e020c330123be8ce527e535d185ed4b6f45694 \
--hash=sha256:e76826342cefe3c3d5f7e8ee4316b80d1dd8a300781612ddbc765c17ba25a6c6
pytest-cov==2.6.0 \
--hash=sha256:513c425e931a0344944f84ea47f3956be0e416d95acbd897a44970c8d926d5d7 \
--hash=sha256:e360f048b7dae3f2f2a9a4d067b2dd6b6a015d384d1577c994a43f3f7cbad762
pytest==4.0.2 \
--hash=sha256:f689bf2fc18c4585403348dd56f47d87780bf217c53ed9ae7a3e2d7faa45f8e9 \
--hash=sha256:f812ea39a0153566be53d88f8de94839db1e8a05352ed8a49525d7d7f37861e9
Expand Down
1 change: 1 addition & 0 deletions requirements/test.in
@@ -1,5 +1,6 @@
-r base.in

pytest
pytest-cov
mock
six
4 changes: 3 additions & 1 deletion requirements/test.txt
@@ -1,4 +1,4 @@
# SHA1:462683344dfd6c3dc35a491d62d1fa9ea1437b42
# SHA1:f64359b009a5de75c4f5dd26c8157b11304bb8ad
#
# This file is autogenerated by pip-compile-multi
# To update, run:
Expand All @@ -8,11 +8,13 @@
-r base.txt
atomicwrites==1.2.1 # via pytest
attrs==18.2.0 # via pytest
coverage==4.5.2 # via pytest-cov
mock==2.0.0
more-itertools==4.3.0 # via pytest
pathlib2==2.3.3 # via pytest
pbr==5.1.1 # via mock
pluggy==0.8.0 # via pytest
py==1.7.0 # via pytest
pytest-cov==2.6.0
pytest==4.0.2
scandir==1.9.0 # via pathlib2
2 changes: 1 addition & 1 deletion tox.ini
Expand Up @@ -7,7 +7,7 @@ platform = linux: linux
windows: win32
setenv =
PYTHONPATH = {toxinidir}:{toxinidir}/pip-compile-multi
commands = python -m pytest
commands = python -m pytest --cov=pipcompilemulti --cov-branch --cov-report=html
deps =
linux: -r{toxinidir}/requirements/test.hash
windows: -r{toxinidir}/requirements/testwin.hash
Expand Down

0 comments on commit 41a8b69

Please sign in to comment.