Skip to content

Commit f76256e

Browse files
author
Devyn Stott
committed
chore(coverage): Attempt to report code coverage
1 parent e3c518b commit f76256e

File tree

4 files changed

+9
-4
lines changed

4 files changed

+9
-4
lines changed

.travis.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,8 @@ python:
55
install:
66
- pip install .
77
- pip install -r requirements.txt
8+
- pip install codecov
89
# command to run tests
9-
script: python -m pytest .
10+
script: python -m pytest . --cov=starter --cov-report term --cov-report xml
11+
after_success:
12+
- codecov

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
# python-starter
22
A starting spot for python projects. Embracing open source elements.
33

4-
[![Documentation status](https://readthedocs.org/projects/python-starter/badge/?version=latest)](http://python-starter.readthedocs.io/en/latest/) [![Build Status](https://travis-ci.org/SyntaxRules/python-starter.svg?branch=master)](https://travis-ci.org/SyntaxRules/python-starter)
4+
[![Documentation status](https://readthedocs.org/projects/python-starter/badge/?version=latest)](http://python-starter.readthedocs.io/en/latest/) [![Build Status](https://travis-ci.org/SyntaxRules/python-starter.svg?branch=master)](https://travis-ci.org/SyntaxRules/python-starter) [![codecov](https://codecov.io/gh/SyntaxRules/python-starter/branch/master/graph/badge.svg)](https://codecov.io/gh/SyntaxRules/python-starter)
5+
56

67
# Project Structure
78

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
pytest-cov

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@
2525
"console_scripts": ['start_example = starter.__main__:main']
2626
},
2727
test_suite='tests',
28-
tests_require=['coverage',
29-
'pytest',
28+
tests_require=['pytest',
29+
'pytest-cov',
3030
'pylint',
3131
'mock']
3232
)

0 commit comments

Comments
 (0)