Skip to content

Commit 3c472e3

Browse files
committed
Travis: Fix coverage reporting (hopefully)
1 parent e9f6b9a commit 3c472e3

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

.travis.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@ python:
66
- "2.6"
77
- "2.7"
88

9-
install:
9+
install:
1010
- python setup.py install
11-
- pip install coverage coveralls
11+
- pip install coveralls
1212

13-
script:
14-
- coverage run --source=mwclient setup.py test
13+
script:
14+
- python setup.py test
1515

1616
after_success:
1717
- coveralls

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class PyTest(TestCommand):
1717

1818
def initialize_options(self):
1919
TestCommand.initialize_options(self)
20-
self.pytest_args = '-v --pep8 tests mwclient'
20+
self.pytest_args = '-v --pep8 tests mwclient --cov mwclient'
2121

2222
def finalize_options(self):
2323
TestCommand.finalize_options(self)
@@ -54,7 +54,7 @@ def run_tests(self):
5454
license='MIT',
5555
packages=['mwclient'],
5656
cmdclass={'test': PyTest},
57-
tests_require=['pytest-pep8', 'pytest-cache', 'pytest', 'responses>=0.3.0'],
57+
tests_require=['pytest-pep8', 'pytest-cache', 'pytest', 'pytest-cov', 'funcsigs', 'responses>=0.3.0'],
5858
install_requires=requirements,
5959
zip_safe=True
6060
)

0 commit comments

Comments
 (0)