Generate and publish code coverage reports for QUnit tests.
Description
Description
Details
Details
- Reference
- bz40656
Status | Subtype | Assigned | Task | ||
---|---|---|---|---|---|
Invalid | None | T108946 [Epic] Improve the development infrastructure | |||
Duplicate | None | T42656 [Task] Wikibase: have test coverage of JavaScript QUnit tests |
Event Timeline
Comment Actions
blanket.js does not easily work with ResourceLoader. CompletenessTest is quite ugly, but I guess we have to work with that.
Comment Actions
The direction for QUnit testing forward is Karma. Karma has an official coverage plugin powered by istanbul-js.
Several projects are already using this. Published at https://integration.wikimedia.org/cover/.
However for tests that are not standalone but depend on MediaWiki core, this doesn't work yet since we need to map things back to the file system from the proxied MediaWiki PHP requests. Whether that is feasible in the short term I'm not sure. I suspect bypassing it by solving T89433 is probably more feasible. And would also improve the quality of our code.