Page MenuHomePhabricator

Can we make parser tests show as PHP test coverage?
Open, Needs TriagePublic

Description

Numerous extensions don't appear on https://doc.wikimedia.org/cover-extensions/ because they don't have any PHPUnit tests, but they do have parser tests... Which exercise PHP code in the extensions.

Is there any way we can use these to trigger creation of PHPUnit code coverage? wrt T186850: Wikimedia-deployed extensions/skins with no PHPUnit coverage

Event Timeline

I'd probably lean more to a subtask, but it's close!

This comment was removed by Reedy.

As part of the test parallelization / PHPUnit 10 (?) work, I think someone was working on generating a static test harness from the parser test file, which would then make the @covers nondynamic, I think:

T345481: Migrate Parser and extension tests away from deprecated PHPUnit TestSuite subclassing