This is a task tracking unit tests that should be added, and provides instructions on how to find new unit tests that should be added . Adding unit tests is a simple way for new contributors to explore the library.
To find code not yet tested, browse https://codecov.io/github/wikimedia/pywikibot-core .
Some 'missing tests' information extracted from comments in the source code of the tests:
site_tests: ~~newimages~~, ~~longpages~~, ~~shortpages~~, ~~ancientpages~~, ~~unwatchedpages~~
page_tests: autoFormat, isAutoTitle (only partially done), getOldVersion, ~~getReferences~~, ~~backlinks~~, ~~embeddedin~~, getVersionHistory, getVersionHistoryTable, fullVersionHistory, contributingUsers
There are also some notes on using coverage at https://www.mediawiki.org/wiki/Manual:Pywikibot/Test_coverage#Library
Google Code-in clonable task description:
```lang=markdownImprove the [code coverage](https://en.wikipedia.org/wiki/code_coverage) of the Pywikibot library test suite.
Browse [codecov analysis of Pywikibot](https://codecov.io/gh/wikimedia/pywikibot-core) and select a set of lines of code that are not yet exercised by the [extensive test suite](https://github.com/wikimedia/pywikibot-core/tree/master/tests).
Add a unit test which exercises that set of lines of code to the test suite, and after the code is merged it will be automatically [tested on travis-ci](https://travis-ci.org/wikimedia/pywikibot-core/builds).
[Create bug reports](https://www.mediawiki.org/wiki/How_to_report_a_bug) in [Wikimedia Phabricator](https://www.mediawiki.org/wiki/Phabricator/Help) for any relevant failures encountered.
See the provided patch in Gerrit at https://gerrit.wikimedia.org/r/#/c/178891 as an example of this task.
The Phabricator task for tracking missing library tests is https://phabricator.wikimedia.org/T60941
Pywikibot is a Python-based framework to write bots for MediaWiki ([more information](https://www.mediawiki.org/wiki/Manual:Pywikibot). [Documentation on Gerrit is available](https://www.mediawiki.org/wiki/Manual:Pywikibot/Gerrit).
```
Mentors: @jayvdb