Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unit tests lack code coverage reporting and @covers annotations #1284

Open
westonruter opened this issue Jun 6, 2024 · 0 comments
Open

Unit tests lack code coverage reporting and @covers annotations #1284

westonruter opened this issue Jun 6, 2024 · 0 comments
Labels
Infrastructure Issues for the overall performance plugin infrastructure [Type] Enhancement A suggestion for improvement of an existing feature

Comments

@westonruter
Copy link
Member

Feature Description

In looking at plugins/webp-uploads/tests/test-load.php, I noticed most of the tests lack @covers annotations. We should add those throughout our unit tests to better keep track of the code being tested. We should also add code coverage reporting for the repo (with Codecov). The phpunit calls in composer.json should also add --strict-coverage to report warnings when @covers tags are wrong.

@westonruter westonruter added [Type] Enhancement A suggestion for improvement of an existing feature Infrastructure Issues for the overall performance plugin infrastructure labels Jun 6, 2024
@westonruter westonruter added this to the performance-lab n.e.x.t milestone Jun 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Infrastructure Issues for the overall performance plugin infrastructure [Type] Enhancement A suggestion for improvement of an existing feature
Projects
None yet
Development

No branches or pull requests

1 participant