https://bugzilla.wikimedia.org/show_bug.cgi?id=72863
Bug ID: 72863 Summary: add coverage report to tests Product: Pywikibot Version: core (2.0) Hardware: All OS: All Status: NEW Severity: enhancement Priority: Unprioritized Component: tests Assignee: Pywikipedia-bugs@lists.wikimedia.org Reporter: jayvdb@gmail.com Web browser: --- Mobile Platform: ---
We should track what percentage of the codebase is being tested, probably on travis and maybe sending the logs to http://coveralls.io
coverage works:
$ coverage-2.7 run --source=pywikibot setup.py test
http://nose.readthedocs.org/en/latest/plugins/cover.html also works:
$ nosetests --with-coverage --cover-package=pywikibot tests
I've uploaded our current coverage stats to
https://www.mediawiki.org/wiki/Manual:Pywikibot/Test_coverage
pywikipedia-bugs@lists.wikimedia.org