To ensure that our code meets a high standard of quality, we should begin measuring test coverage for each of the metrics platform client libraries.
As an initial goal, we'll aim for 80% test coverage for all libraries.
To ensure that our code meets a high standard of quality, we should begin measuring test coverage for each of the metrics platform client libraries.
As an initial goal, we'll aim for 80% test coverage for all libraries.
Status | Subtype | Assigned | Task | ||
---|---|---|---|---|---|
Open | None | T276378 Release Metrics Platform v1 | |||
Resolved | • Mholloway | T288742 Measure test coverage for all client libraries | |||
Resolved | phuedx | T289609 Pass in a stream config that requests all of the fields and check them | |||
Resolved | phuedx | T289610 Write integration tests |
Change 712479 had a related patch set uploaded (by Mholloway; author: Michael Holloway):
[mediawiki/libs/metrics-platform@master] [PHP] Add coverage reporting
Change 712523 had a related patch set uploaded (by Mholloway; author: Michael Holloway):
[mediawiki/libs/metrics-platform@master] [JS] Add code coverage reporting
Change 712574 had a related patch set uploaded (by Mholloway; author: Michael Holloway):
[mediawiki/libs/metrics-platform@master] [Java] Add jacoco plugin
Change 713645 had a related patch set uploaded (by Mholloway; author: Michael Holloway):
[mediawiki/libs/metrics-platform@master] [Swift] Add make recipe for generating code coverage
A note on the Swift library: my testing strategy for the core MetricsClient object in PHP, JS, and Java has been based on mocking. This is more difficult for the Swift library because AFAIK there is no mocking library currently in existence that's compatible with a pure Swift project. I've looked at https://github.com/birdrides/mockingbird and https://github.com/Brightify/Cuckoo and I don't believe either will work without substantial modifications.
Change 712574 merged by jenkins-bot:
[mediawiki/libs/metrics-platform@master] [Java] Add jacoco Gradle plugin for code coverage reporting
Change 713645 merged by jenkins-bot:
[mediawiki/libs/metrics-platform@master] [Swift] Add make recipe for generating code coverage
Change 712523 merged by jenkins-bot:
[mediawiki/libs/metrics-platform@master] [JS] Add code coverage reporting
Change 712479 merged by jenkins-bot:
[mediawiki/libs/metrics-platform@master] [PHP] Add coverage reporting