Skip to content

Commit efe04c6

Browse files
committed
TST: Add coveragerc
Add coveragerc to get a more accurate view of module coverage
1 parent c386e80 commit efe04c6

File tree

2 files changed

+31
-1
lines changed

2 files changed

+31
-1
lines changed

.coveragerc

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# .coveragerc to control coverage.py
2+
[run]
3+
source = pandas_datareader
4+
branch = True
5+
include = */pandas_datareader/*
6+
omit =
7+
*/_version.py
8+
*/yahoo/*
9+
*/google/options.py
10+
*/google/quotes.py
11+
*/tests/google/test_options.py
12+
13+
[report]
14+
# Regexes for lines to exclude from consideration
15+
exclude_lines =
16+
# Have to re-enable the standard pragma
17+
pragma: no cover
18+
# Don't complain if tests don't hit defensive assertion code:
19+
raise NotImplementedError
20+
raise ImmediateDeprecationError
21+
# Ignore pass
22+
pass
23+
include = */pandas_datareader/*
24+
omit =
25+
*/_version.py
26+
*/yahoo/*
27+
*/google/options.py
28+
*/google/quotes.py
29+
*/tests/google/test_options.py
30+
ignore_errors = True

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ install:
7171

7272
script:
7373
- export ENIGMA_API_KEY=$ENIGMA_API_KEY
74-
- pytest -s -r xX --cov=pandas_datareader --cov-report xml:/tmp/cov-datareader.xml --junitxml=/tmp/datareader.xml
74+
- pytest -s -r xX --cov-config .coveragerc --cov=pandas_datareader --cov-report xml:/tmp/cov-datareader.xml --junitxml=/tmp/datareader.xml
7575
- flake8 --version
7676
- flake8 pandas_datareader
7777

0 commit comments

Comments
 (0)