GSoC/GCI Archive
Google Code-in 2014 Wikimedia Foundation

Build a test case for a Pywikibot script not exercised by the test suite

completed by: m4tx

mentors: John Vandenberg

Pywikibot is a Python-based framework to write bots for MediaWiki. See https://www.mediawiki.org/wiki/Manual:Pywikibot for more information. Patches can be submitted via Gerrit (you need a MediaWiki.org account). More documentation on Gerrit can be found at https://www.mediawiki.org/wiki/Manual:Pywikibot/Gerrit. After you have successfully claimed this task in Google Melange please do use the task in Phabricator for communication instead of Google Melange. This allows more PWB developers to be reached! General development questions can be asked on the Pywikibot mailing list at https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l and the #pywikibot IRC channel (see https://www.mediawiki.org/wiki/MediaWiki_on_IRC).

Improve the code coverage(see https://en.wikipedia.org/wiki/code_coverage ) of the Pywikibot test suite for one of its pre-packaged scripts. Select a script (see https://www.mediawiki.org/wiki/Manual:Pywikibot/Scripts ) which is not listed at https://www.mediawiki.org/wiki/Manual:Pywikibot/Test_coverage#Scripts and develop a basic test module which exercises that the code which performs the bots stated purpose. Create bug reports for any failures encountered.

The Phabricator task for tracking missing tests is https://phabricator.wikimedia.org/T60941 , and missing script tests is https://phabricator.wikimedia.org/T72336 .  An example task is https://phabricator.wikimedia.org/T78258 .

Students are required to read Wikimedia's general instructions at https://www.mediawiki.org/wiki/Google_Code-in_2014#Instructions_for_GCI_students first.