diff --git a/.coveragerc b/.coveragerc new file mode 100644 index 0000000..2104e6f --- /dev/null +++ b/.coveragerc @@ -0,0 +1,4 @@ +[paths] +source = + birdisle/ + */site-packages/birdisle/ diff --git a/.travis.yml b/.travis.yml index fddfb10..eda8694 100644 --- a/.travis.yml +++ b/.travis.yml @@ -11,5 +11,8 @@ install: - pip install -r requirements.txt - pip install . script: - - pytest --forked + # Workaround for https://github.com/pytest-dev/pytest-cov/issues/98 + - (cd tests && pytest --cov=birdisle --cov-branch) && coverage combine tests/.coverage - if [[ "$TRAVIS_PYTHON_VERSION" == 3.6 ]]; then flake8; fi +after_success: + - coveralls diff --git a/doc/changelog.rst b/doc/changelog.rst index ac44a65..0e1c78d 100644 --- a/doc/changelog.rst +++ b/doc/changelog.rst @@ -4,6 +4,7 @@ Release history 0.1.1 ----- - Update README.md +- Add coverage measurement with coveralls 0.1 --- diff --git a/requirements.in b/requirements.in index 86a107f..8fa4a85 100644 --- a/requirements.in +++ b/requirements.in @@ -1,8 +1,10 @@ cffi redis pytest -pytest-forked +pytest-cov flake8 +coverage +coveralls aioredis; python_version>="3.5" pytest-asyncio; python_version>="3.5" diff --git a/requirements.txt b/requirements.txt index 67c8764..5016041 100644 --- a/requirements.txt +++ b/requirements.txt @@ -9,9 +9,15 @@ async-generator==1.10 ; python_version >= "3.5" async-timeout==2.0.1 ; python_version >= "3.5" atomicwrites==1.2.1 # via pytest attrs==18.2.0 # via pytest +certifi==2018.10.15 # via requests cffi==1.11.5 +chardet==3.0.4 # via requests +coverage==4.5.1 +coveralls==1.5.1 +docopt==0.6.2 # via coveralls flake8==3.5.0 hiredis==0.2.0 # via aioredis +idna==2.7 # via requests mccabe==0.6.1 # via flake8 more-itertools==4.3.0 # via pytest pluggy==0.7.1 # via pytest @@ -20,7 +26,9 @@ pycodestyle==2.3.1 # via flake8 pycparser==2.19 # via cffi pyflakes==1.6.0 # via flake8 pytest-asyncio==0.9.0 ; python_version >= "3.5" -pytest-forked==0.2 +pytest-cov==2.6.0 pytest==3.8.2 redis==2.10.6 +requests==2.20.0 # via coveralls six==1.11.0 # via more-itertools, pytest +urllib3==1.24 # via requests