Page MenuHomePhabricator

Get Equivset Test Coverage to 100%
Closed, ResolvedPublic3 Estimated Story Points

Description

We should up the Equivset test coverage to 100%

Event Timeline

dbarratt set the point value for this task to 3.Oct 10 2017, 10:51 PM

Change 383498 had a related patch set uploaded (by Dbarratt; owner: Dbarratt):
[mediawiki/libs/Equivset@master] Increase Test Coverage to 100%

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

@Legoktm is there anyway to enforce (with Jenkins) that we maintain 100% code coverage?

Whatever we put into the "composer test" command gets run by jenkins. So if there's a way to make phpunit or something else complain when coverage isn't 100% that would be the recommended way.

Whatever we put into the "composer test" command gets run by jenkins. So if there's a way to make phpunit or something else complain when coverage isn't 100% that would be the recommended way.

Fantastic. Done!

@Legoktm uhh... we need Xdebug in Jenkins. :(

15:33:49 Warning: The Xdebug extension is not loaded
15:33:49 No code coverage will be generated.

Following up on the IRC ping.

xdebug is installed via Debian packages which should enable it by default an ini file. We have a task to stop loading xdebug since that slow down PHP T175028. To generate coverage we would thus invoke php with: php -d extension=xdebug.so.

AFAIK xdebug is still enabled. If it is not that is a bug I guess. Do you have a Gerrit change and job name that shows the issue?

Change 383498 merged by jenkins-bot:
[mediawiki/libs/Equivset@master] Increase Test Coverage to 100%

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