File tree Expand file tree Collapse file tree 3 files changed +20
-3
lines changed Expand file tree Collapse file tree 3 files changed +20
-3
lines changed Original file line number Diff line number Diff line change
1
+ [run]
2
+ source =matplotlib
3
+ [report]
4
+ omit =
5
+ */python?.?/*
6
+ */site-packages/nose/*
7
+ *test*
8
+
9
+ exclude_lines =
10
+ raise NotImplemented
Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ install:
67
67
pip install $PRE python-dateutil $NUMPY pyparsing pillow sphinx!=1.3.0;
68
68
fi
69
69
# Always install from pypi
70
- - pip install $PRE nose pep8
70
+ - pip install $PRE nose pep8 coveralls coverage
71
71
72
72
# Install mock on python 2. Python 2.6 requires mock 1.0.1
73
73
# Since later versions have dropped support
@@ -170,3 +170,4 @@ after_success:
170
170
fi
171
171
fi
172
172
fi
173
+ coveralls
Original file line number Diff line number Diff line change 19
19
import nose
20
20
from matplotlib .testing .noseclasses import KnownFailure
21
21
from matplotlib import default_test_modules
22
-
22
+ from nose . plugins . cover import Coverage
23
23
from matplotlib import font_manager
24
24
# Make sure the font caches are created before starting any possibly
25
25
# parallel tests
26
26
if font_manager ._fmcache is not None :
27
27
while not os .path .exists (font_manager ._fmcache ):
28
28
time .sleep (0.5 )
29
29
30
+ plugins = [KnownFailure , Coverage ]
31
+
30
32
plugins = [KnownFailure ]
33
+ env = {"NOSE_WITH_COVERAGE" : 1 ,
34
+ 'NOSE_COVER_PACKAGE' : 'matplotlib' ,
35
+ 'NOSE_COVER_HTML' : 1 }
31
36
32
37
# Nose doesn't automatically instantiate all of the plugins in the
33
38
# child processes, so we have to provide the multiprocess plugin with
@@ -45,7 +50,8 @@ def run():
45
50
faulthandler .enable ()
46
51
47
52
nose .main (addplugins = [x () for x in plugins ],
48
- defaultTest = default_test_modules )
53
+ defaultTest = default_test_modules ,
54
+ env = env )
49
55
50
56
if __name__ == '__main__' :
51
57
if '--no-pep8' in sys .argv :
You can’t perform that action at this time.
0 commit comments