Mailing List Archive

Code coverage for JavaScript testing?
[1] describes how to do QUnit testing but it does not mention if / how to get some coverage reports (e.g. with the help of Istanbul). While searching for an answer, I found this [2] post about testing challenges for Extension:Popups and solutions implemented for this specific extension.

Is there a generic approach, how to get some coverage reports for the JavaScript parts of MW and MW extensions?

/Alexander

[1] https://www.mediawiki.org/wiki/Manual:JavaScript_unit_testing
[2] https://phabricator.wikimedia.org/phame/post/view/96/fast_and_isolated_js_unit_tests/
_______________________________________________
Wikitech-l mailing list -- wikitech-l@lists.wikimedia.org
To unsubscribe send an email to wikitech-l-leave@lists.wikimedia.org
https://lists.wikimedia.org/postorius/lists/wikitech-l.lists.wikimedia.org/
Re: Code coverage for JavaScript testing? [ In reply to ]
On Tue, Oct 26, 2021 at 2:31 AM planetenxin <planetenxin@web.de> wrote:

> Is there a generic approach, how to get some coverage reports for the
> JavaScript parts of MW and MW extensions?
>

Is https://doc.wikimedia.org/cover/ helpful in your case?

--
| Greg Grossmeier GPG: B2FA 27B1 F7EB D327 6B8E |
| Dir. Engineering Productivity A18D 1138 8E47 FAC8 1C7D |