Skip to content

Commit e30ba4d

Browse files
committed
Adds code coverage
1 parent 0e6b28e commit e30ba4d

File tree

5 files changed

+14
-5
lines changed

5 files changed

+14
-5
lines changed

.coveragerc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[run]
2+
branch = True
3+
source = slacktools

.travis.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,13 @@ language: python
22
cache: pip
33
matrix:
44
include:
5-
- python: 3.4
6-
- python: 3.5
7-
- python: 3.6
85
- python: 3.7
96
dist: xenial
107
sudo: true
8+
script: pytest && codecov
9+
- python: 3.4
10+
- python: 3.5
11+
- python: 3.6
1112
- python: 3.8-dev
1213
dist: xenial
1314
sudo: true

README.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ python-slacktools
33

44
A toolbelt for working with the various `Slack APIs`_ in python.
55

6-
|Build Status| |Documentation Status| |PyPI - Version| |PyPI - Python Version|
6+
|Documentation Status| |Build Status| |Code Coverage| |PyPI - Version| |PyPI - Python Version|
77

88
.. |Build Status| image:: https://travis-ci.com/austinpray/python-slacktools.svg?branch=master
99
:target: https://travis-ci.com/austinpray/python-slacktools
@@ -13,6 +13,8 @@ A toolbelt for working with the various `Slack APIs`_ in python.
1313
:target: https://pypi.org/project/slacktools/
1414
.. |PyPI - Python Version| image:: https://img.shields.io/pypi/pyversions/Django.svg
1515
:target: https://pypi.org/project/slacktools/
16+
.. |Code Coverage| image:: https://codecov.io/gh/austinpray/python-slacktools/branch/master/graph/badge.svg
17+
:target: https://codecov.io/gh/austinpray/python-slacktools
1618

1719
Features
1820
--------

pytest.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
[pytest]
2-
addopts = --doctest-modules
2+
addopts = --doctest-modules --cov
33
testpaths = slacktools

requirements-dev.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1+
codecov
12
pytest
3+
pytest-cov
4+
25
sphinx
36
sphinx-autobuild
47
sphinx_rtd_theme

0 commit comments

Comments
 (0)