Page MenuHomePhabricator

OAuthAuthentication extension is missing @covers tags
Closed, ResolvedPublic

Description

PHPCS has identified that some of the OAuthAuthentication PHPUnit tests are missing @covers tags. Those tags
are necessary for PHPUnit to accurately calculate test coverage.

See the PHPUnit documentation for how to use it.

Once the tags have been added, the MissingCovers sniff should be re-enabled in .phpcs.xml.

If you are not already familiar with PHPUnit tests and would like to learn more about this: https://www.mediawiki.org/wiki/Manual:PHP_unit_testing/Writing_unit_tests has links to some good material on the basics of testing.

Mentors: @Legoktm

Event Timeline

Vvjjkkii renamed this task from OAuthAuthentication extension is missing @covers tags to gmcaaaaaaa.Jul 1 2018, 1:09 AM
Vvjjkkii triaged this task as High priority.
Vvjjkkii updated the task description. (Show Details)
Vvjjkkii removed a subscriber: Aklapper.
CommunityTechBot renamed this task from gmcaaaaaaa to OAuthAuthentication extension is missing @covers tags.Jul 1 2018, 5:12 PM
CommunityTechBot raised the priority of this task from High to Needs Triage.
CommunityTechBot updated the task description. (Show Details)
CommunityTechBot added a subscriber: Aklapper.

Change 472865 had a related patch set uploaded (by Zoranzoki21; owner: Zoranzoki21):
[mediawiki/extensions/OAuthAuthentication@master] Add missing @covers tags

https://gerrit.wikimedia.org/r/472865

Change 472865 merged by Umherirrender:
[mediawiki/extensions/OAuthAuthentication@master] Add missing @covers tags

https://gerrit.wikimedia.org/r/472865