Page MenuHomePhabricator

TwnMainPage extension is missing @covers tags
Closed, ResolvedPublic

Description

PHPCS has identified that some of the TwnMainPage 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 TwnMainPage extension is missing @covers tags to 1lcaaaaaaa.Jul 1 2018, 1:08 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 1lcaaaaaaa to TwnMainPage extension is missing @covers tags.Jul 1 2018, 5:02 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 472863 had a related patch set uploaded (by Rafidaslam; owner: Rafid Aslam):
[mediawiki/extensions/TwnMainPage@master] CachedStatTests.php: Add @covers tag

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

Change 472863 merged by jenkins-bot:
[mediawiki/extensions/TwnMainPage@master] CachedStatTests.php: Add @covers tag

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

Umherirrender assigned this task to rafidaslam.
Umherirrender triaged this task as Medium priority.