Skip to content

Restore PHPUnit code coverage to 60%+ #4175

@westonruter

Description

@westonruter

Bug Description

After merging #4026 I noticed an ❌ status with the commit:

image

Alas, I should have written more tests and Codecov is now complaining.

This is because 0.69% is greater than the configured threshold of 0.1%:

threshold: 0.1%

Coverage should be brought back up to at least 60%.

Expected Behaviour

Codecov should be happy; test coverage should be complete.

Steps to reproduce

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Screenshots

Additional context

  • WordPress version:
  • Plugin version:
  • Gutenberg plugin version (if applicable):
  • AMP plugin template mode:
  • PHP version:
  • OS:
  • Browser: [e.g. chrome, safari]
  • Device: [e.g. iPhone6]

Do not alter or remove anything below. The following sections will be managed by moderators only.

Acceptance criteria

Implementation brief

QA testing instructions

Demo

Changelog entry

Metadata

Metadata

Assignees

Labels

BugSomething isn't working

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions