Page MenuHomePhabricator

Add Jest code coverage report somewhere
Closed, ResolvedPublic1 Estimated Story Points

Description

Should pick one of these

Idea 1

I think if you change the output directory to docs, and also add it to the npm run doc command it should appear magically at docs.wikimedia.org

Idea 2

If you do something like this patch to Popups you should be able to get the JS coverage report in SonarQube at https://sonarcloud.io/component_measures?id=mediawiki-extensions-PageTriage&metric=new_coverage&view=list

Event Timeline

Novem_Linguae renamed this task from Get Jest code coverage report added to docs.wikimedia.org to Add Jest code coverage report to docs.wikimedia.org.Jun 17 2023, 12:16 AM
Novem_Linguae moved this task from Backlog to Priority technical debt on the PageTriage board.
Samwalton9-WMF set the point value for this task to 1.
Novem_Linguae renamed this task from Add Jest code coverage report to docs.wikimedia.org to Add Jest code coverage report somewhere.Jun 22 2023, 8:38 PM
Novem_Linguae updated the task description. (Show Details)
Novem_Linguae added subscribers: kostajh, Jdlrobson.

Change 934396 had a related patch set uploaded (by Jsn.sherman; author: Jsn.sherman):

[mediawiki/extensions/PageTriage@master] Add npm coverage script for SonarQube

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

I spot-checked a half-dozen extensions on the docs site and none of those were reporting js coverage there. So, I'm going the SonarQube route. I downloaded the Popups extension and ran it's coverage script and verified that my patch dumps the coverage report to the same directory.

Change 934396 merged by jenkins-bot:

[mediawiki/extensions/PageTriage@master] Add npm coverage script for SonarQube

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