• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

bleedingdeacons / scrutiny / 30949840189
93%

Build:
DEFAULT BRANCH: main
Ran 04 Aug 2026 08:53PM UTC
Jobs 1
Files 23
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

04 Aug 2026 08:52PM UTC coverage: 92.399% (+1.6%) from 90.804%
30949840189

push

github

web-flow
test: cover src/Admin and drop its coverage exclusion (#44)

Scrutiny excluded src/Admin from the coverage denominator on the grounds
that admin screens are render/menu glue only WordPress can exercise.
Amber disproves that — it covers its entire src/Admin on this same
tooling — so tests/Unit/Admin now covers Scrutiny's, and the exclusion is
replaced by a comment explaining why it is deliberately absent.

90 new tests across three files, following Integrity's SettingsPageTest:

  - AuditLogAdminTest — registration, the purge handler and its audit
    entry, the rendered table and its filters, pagination, and the two
    private statics behind the Detail column.
  - MemberPrunerAdminTest — registration, both capability guards, the
    posted-value clamp, and the rendered form and status banner.
  - ScrutinyMenuTest — the menu registrar and the default-submenu strip.

The logger double is Scrutiny's own SpyAuditLogger. Note this plugin's
bootstrap keeps its own recording add_action() and globals-backed
current_user_can()/get_option(), which win over the shared wp-mocks
stubs by design, so hooks and capabilities are driven through those
globals rather than through WpState.

Production change: MemberPrunerAdmin::handleSave() ends in
wp_safe_redirect() followed by a bare exit, which takes PHPUnit with it,
so everything past its guards was unreachable. The persistence and the
redirect URL are split into persistPostedSettings() and
savedRedirectUrl() and driven by reflection — the same approach
Integrity took for parsePermissions()/parseIpWhitelist(). Pure code
move; behaviour is unchanged.

Coverage: 443 of the 446 lines in src/Admin are now hit. The three that
are not are the redirect-and-exit itself and the ABSPATH guards.

1714 of 1855 relevant lines covered (92.4%)

8.18 hits per line

Coverage Regressions

Lines Coverage ∆ File
1
92.59
-3.7% scrutiny/scrutiny/src/Cleanup/PrunerCron.php
1
93.55
-3.23% scrutiny/scrutiny/src/Cleanup/PrunerSettings.php
1
73.33
-6.67% scrutiny/scrutiny/src/Privacy/PersonalDataFields.php
Jobs
ID Job ID Ran Files Coverage
1 30949840189.1 04 Aug 2026 08:53PM UTC 23
92.4
GitHub Action Run
Source Files on build 30949840189
  • Tree
  • List 23
  • Changed 3
  • Source Changed 0
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #30949840189
  • d183db71 on github
  • Prev Build on main (#30926985807)
  • Next Build on main (#30950017102)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc