Skip to content

Commit 108c3e6

Browse files
committed
Add coverage report trough codecov.io
1 parent 6c2c9a4 commit 108c3e6

File tree

6 files changed

+29
-4
lines changed

6 files changed

+29
-4
lines changed

.coveragerc

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
11
[run]
2+
branch = true
23
include = scrapy/*
3-
omit = scrapy/xlib*,scrapy/tests*
4+
omit =
5+
tests/*
6+
scrapy/xlib/*
7+
scrapy/conf.py
8+
scrapy/stats.py
9+
scrapy/project.py
10+
scrapy/utils/decorator.py
11+
scrapy/statscol.py
12+
scrapy/squeue.py
13+
scrapy/log.py
14+
scrapy/dupefilter.py
15+
scrapy/command.py
16+
scrapy/linkextractor.py
17+
scrapy/spider.py
18+
scrapy/contrib/*
19+
scrapy/contrib_exp/*

.travis.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,11 @@ env:
77
- TOXENV=py33
88
- TOXENV=docs
99
install:
10-
- pip install -U tox twine wheel
10+
- pip install -U tox twine wheel codecov coveralls
1111
script: tox
12+
after_success:
13+
- codecov
14+
- coveralls
1215
notifications:
1316
irc:
1417
use_notice: true

README.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ Scrapy
1818
:target: https://github.com/scrapy/scrapy/wiki/Python-3-Porting
1919
:alt: Python 3 Porting Status
2020

21+
.. image:: https://img.shields.io/codecov/c/github/scrapy/scrapy/master.svg
22+
:target: http://codecov.io/github/scrapy/scrapy?branch=master
23+
:alt: Coverage report
24+
2125

2226
Overview
2327
========

tests/requirements-py3.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
pytest>=2.6.0
22
pytest-twisted
3+
pytest-cov
34
testfixtures
45
jmespath

tests/requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,6 @@ mock
33
mitmproxy==0.10.1
44
netlib==0.10.1
55
pytest-twisted
6+
pytest-cov
67
jmespath
78
testfixtures

tox.ini

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ deps =
1515
leveldb
1616
-rtests/requirements.txt
1717
commands =
18-
py.test {posargs:scrapy tests}
18+
py.test --cov=scrapy {posargs:scrapy tests}
1919

2020
[testenv:precise]
2121
basepython = python2.7
@@ -34,7 +34,7 @@ basepython = python2.7
3434
commands =
3535
pip install -U https://github.com/scrapy/w3lib/archive/master.zip#egg=w3lib
3636
pip install -U https://github.com/scrapy/queuelib/archive/master.zip#egg=queuelib
37-
py.test {posargs:scrapy tests}
37+
py.test --cov=scrapy {posargs:scrapy tests}
3838

3939
[testenv:py33]
4040
basepython = python3.3

0 commit comments

Comments
 (0)