-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
TST: Enable coveralls/codecov code coverage #4678
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 1 commit
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
e5cf550
TST : enable coveralls
tacaswell 38e559b
TST : move coverage output where coveralls expects
tacaswell 2f19ca0
TST : don't upload pep8 test to coveralls
tacaswell f8c7152
MNT : add coverage output to .gitignore
tacaswell afd250c
TST : tweak cover report filters
tacaswell b824add
TST : don't report coverage on testing code
tacaswell 33757ba
use pip install -e
jenshnielsen 5806996
No longer need to install mistune and jsonschema
jenshnielsen 530d26a
Install my fork of nose with support for suppressing output from cover
jenshnielsen 64ee6ce
Suppress output from cover to stdout
jenshnielsen 48b9250
Correct path to excluded files
jenshnielsen 2ce262e
Run coverage only when activated
jenshnielsen 6fa4a76
Add debug output
jenshnielsen 8f3dccb
Make it possible to toggle coverage from matplotlib.test()
jenshnielsen File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next
Next commit
TST : enable coveralls
- also update nose
- Loading branch information
commit e5cf5508242c9b1d2bfec19478e5cdfe3c2e02fc
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
[run] | ||
source=matplotlib | ||
[report] | ||
omit = | ||
*/python?.?/* | ||
*/site-packages/nose/* | ||
*test* | ||
|
||
exclude_lines = | ||
raise NotImplemented |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,6 +23,10 @@ | |
def run(extra_args): | ||
from nose.plugins import multiprocess | ||
|
||
env = {"NOSE_WITH_COVERAGE": 1, | ||
'NOSE_COVER_PACKAGE': 'matplotlib', | ||
'NOSE_COVER_HTML': 1} | ||
|
||
matplotlib._init_tests() | ||
|
||
# Nose doesn't automatically instantiate all of the plugins in the | ||
|
@@ -33,8 +37,8 @@ def run(extra_args): | |
|
||
nose.main(addplugins=[x() for x in plugins], | ||
defaultTest=default_test_modules, | ||
argv=sys.argv + extra_args) | ||
|
||
argv=sys.argv + extra_args, | ||
env=env) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This should also be done in |
||
|
||
if __name__ == '__main__': | ||
extra_args = [] | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should add to, not replace,
os.environ
.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since code coverage can slow down runtimes, and it's not compatible with multiprocessing tests, we should probably have this be an option controlled by a commandline flag. Then on Travis-CI, we can do this just on one configuration (probably Python 3.5), and keep all the others running with multiple processes.