Skip to content

Commit ff0c7e5

Browse files
authored
Merge pull request #97 from redapple/code-coverage-tox
Run tests with code coverage report
2 parents 91da733 + 1b8a03e commit ff0c7e5

File tree

3 files changed

+15
-1
lines changed

3 files changed

+15
-1
lines changed

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,7 @@
55
build
66
dist
77
scrapely.egg-info
8+
9+
# coverage reports
10+
.coverage
11+
.coverage.*

.travis.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,20 @@
11
language: python
22
python: 2.7
3+
34
env:
45
- TOXENV=py27
56
- TOXENV=py33
67
- TOXENV=py34
8+
79
install:
810
- pip install cython
9-
- pip install -U tox
11+
- pip install -U tox codecov
12+
1013
script: tox
14+
15+
after_success:
16+
- codecov
17+
1118
notifications:
1219
irc:
1320
use_notice: true

tox.ini

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ deps =
1717
commands =
1818
pip install -e .
1919
nosetests \
20+
--with-coverage \
21+
--cover-package=scrapely \
22+
--cover-branches \
2023
--with-doctest \
2124
--with-doctest-ignore-unicode \
2225
--doctest-options='+ELLIPSIS,+IGNORE_UNICODE' \

0 commit comments

Comments
 (0)