Page MenuHomePhabricator

Improve Phonos extension code coverage
Closed, ResolvedPublic2 Estimated Story Points

Description

https://doc.wikimedia.org/cover-extensions/Phonos/ is suggesting we have a very low percentage of code covered by tests (though it doesn't appear to be entirely accurate, e.g. GoogleEngine is well covered but reports 0%) — it would be good to improve this a little though.

Event Timeline

Reedy subscribed.

though it doesn't appear to be entirely accurate, e.g. GoogleEngine is well covered but reports 0%

It's completely accurate ;). You need to fully qualify the @covers in GoogleEngineTest like it is in LarynxEngineTest.

though it doesn't appear to be entirely accurate, e.g. GoogleEngine is well covered but reports 0%

It's completely accurate ;). You need to fully qualify the @covers in GoogleEngineTest like it is in LarynxEngineTest.

Thank you @Reedy 😌

Change 820252 had a related patch set uploaded (by MusikAnimal; author: MusikAnimal):

[mediawiki/extensions/Phonos@master] Use @covers on the class scope, not methods

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

Change 820252 merged by jenkins-bot:

[mediawiki/extensions/Phonos@master] Use @covers on the class scope, not methods

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

Change 820260 had a related patch set uploaded (by MusikAnimal; author: MusikAnimal):

[mediawiki/extensions/Phonos@master] Add EspeakEngine test and ignore all getAudioData() methods

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

Change 820260 merged by jenkins-bot:

[mediawiki/extensions/Phonos@master] Add EspeakEngine test and ignore all getAudioData() methods

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

TheresNoTime assigned this task to MusikAnimal.

Initial "issue" resolved, tests should be expected going forwards anyway 😄