Page MenuHomePhabricator

Jenkins job: PHPUnit code coverage
Closed, ResolvedPublic

Description

We should setup test code coverage analysis, so we can see what code is actually tested


Version: unspecified
Severity: enhancement
URL: http://gcov.php.net/

Details

Reference
bz31518
TitleReferenceAuthorSource BranchDest Branch
Detect images following a pipe, as unnamed tempate argrepos/structured-data/section-image-recs!5mlitnT335180main
Customize query in GitLab

Event Timeline

bzimport raised the priority of this task from to Low.Nov 21 2014, 11:57 PM
bzimport set Reference to bz31518.

I have been working on it with a new shinny Jenkins job :-]

At first we need XDebug and a place where to put the report : https://gerrit.wikimedia.org/r/53531

And the Jenkins job:
https://gerrit.wikimedia.org/r/53532

That segfault for now :(

First repost https://integration.mediawiki.org/coverage/

The job still has some segmentation faults :-(

A @cover had a typo : https://gerrit.wikimedia.org/r/53719

CleanUpTest (for UtfNormal) were reaching the 10 seconds timeout when run under code coverage/Xdebug. Raised the timeout with https://gerrit.wikimedia.org/r/#/c/53720/

The job is still marked as failure because of CleanUpTest taking too long (see bug 46561). I have instructed PHPUnit to ignore coverage for them with
https://gerrit.wikimedia.org/r/55875

That is now living on: https://integration.wikimedia.org/cover/mediawiki-core/master/php/

There are still some culprit but the gross work has been completed now.