Page MenuHomePhabricator

Allow grunt QUnit to create coverage reports
Open, Needs TriagePublic

Description

It would be really useful if node_modules/grunt/bin/grunt qunit could generate code coverage reports. Those could be imported by SonarQube for the codehealth reports, and teams could better understand what test coverage looks like for JavaScript code.

Ideally one would be to run:

  • node_modules/grunt/bin/grunt qunit --qunit-coverage-format=lcov,html (generates lcov and html format reports for all projects in tree)
  • node_modules/grunt/bin/grunt qunit --qunit-component=GrowthExperiments --qunit-coverage-format=lcov (generates lcov report for just GrowthExperiments)

I am not entirely sure what needs to happen to make this happen, hence this task. I think @Krinkle mentioned that source maps would need to be implemented on the ResourceLoader side T47514: ResourceLoader: Implement support for Source Maps.