Page MenuHomePhabricator

SendGrid extension is missing @covers tags
Closed, ResolvedPublic

Description

PHPCS has identified that some of the SendGrid 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.

Event Timeline

Change 436272 had a related patch set uploaded (by D3r1ck01; owner: Alangi Derick):
[mediawiki/extensions/SendGrid@master] Add @covers tags to SendGrid's PHPUnit tests

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

xSavitar triaged this task as Medium priority.
Vvjjkkii renamed this task from SendGrid extension is missing @covers tags to 5lcaaaaaaa.Jul 1 2018, 1:08 AM
Vvjjkkii removed xSavitar as the assignee of this task.
Vvjjkkii raised the priority of this task from Medium to High.
Vvjjkkii updated the task description. (Show Details)
Vvjjkkii removed subscribers: gerritbot, Aklapper.
CommunityTechBot renamed this task from 5lcaaaaaaa to SendGrid extension is missing @covers tags.Jul 1 2018, 8:54 PM
CommunityTechBot assigned this task to xSavitar.
CommunityTechBot lowered the priority of this task from High to Medium.
CommunityTechBot updated the task description. (Show Details)
CommunityTechBot added subscribers: gerritbot, Aklapper.

Change 436272 abandoned by D3r1ck01:
Add @covers tags to SendGrid's PHPUnit tests

Reason:
Need to upgrade sendgrid's package. Will do a different patch with all the refactoring done!

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

Change 444178 had a related patch set uploaded (by D3r1ck01; owner: Alangi Derick):
[mediawiki/extensions/SendGrid@master] Add @covers tags to SendGrid's PHPUnit tests

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

Change 444178 merged by jenkins-bot:
[mediawiki/extensions/SendGrid@master] Add @covers tags to SendGrid's PHPUnit tests

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

Thanks @Legoktm for filing this. It's been resolved and thanks for merging :)