Skip to content

test: cover the dashboard widgets, the stale-screen banner, and the admin bar - #317

Merged
josephfusco merged 2 commits into
mainfrom
test/315-widget-render-coverage
Aug 23, 2026
Merged

test: cover the dashboard widgets, the stale-screen banner, and the admin bar#317
josephfusco merged 2 commits into
mainfrom
test/315-widget-render-coverage

Conversation

@josephfusco

Copy link
Copy Markdown
Collaborator

The four lowest-covered units in the plugin, none of which had a test reaching their render or enqueue paths.

Closes #315
Closes #316

Use of AI Tools

AI assistance: Yes
Tool(s): Claude Code
Model(s): Claude Opus 5

Used for: Assisting with coverage measurement and test authoring

@github-actions

Copy link
Copy Markdown
Contributor

The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the props-bot label.

Core Committers: Use this line as a base for the props when committing in SVN:

Props joefusco.

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.

@codecov

codecov Bot commented Aug 23, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 97.15%. Comparing base (9ebaf50) to head (c4b8617).

Additional details and impacted files
@@              Coverage Diff              @@
##               main     #317       +/-   ##
=============================================
+ Coverage     79.62%   97.15%   +17.53%     
  Complexity      190      190               
=============================================
  Files            14       14               
  Lines          2076     2076               
=============================================
+ Hits           1653     2017      +364     
+ Misses          423       59      -364     
Flag Coverage Δ
multisite 97.15% <ø> (+17.53%) ⬆️
phpunit 96.05% <ø> (+17.58%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@josephfusco
josephfusco merged commit 433f7b6 into main Aug 23, 2026
16 checks passed
@josephfusco
josephfusco deleted the test/315-widget-render-coverage branch August 23, 2026 13:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Untested paths in screen-revisions.php and admin-bar.php Test classes targeting a class need a class-level @covers

1 participant