Last modified: 2014-11-01 14:26:59 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T74863, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 72863 - add coverage report to tests
add coverage report to tests
Status: NEW
Product: Pywikibot
Classification: Unclassified
tests (Other open bugs)
core-(2.0)
All All
: Unprioritized enhancement
: ---
Assigned To: Pywikipedia bugs
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-11-01 14:26 UTC by John Mark Vandenberg
Modified: 2014-11-01 14:26 UTC (History)
0 users

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description John Mark Vandenberg 2014-11-01 14:26:59 UTC
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

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links