Skip to content

test: restore reliable full repository quality gates #158

Description

@chubes4

Problem

The current composer test and composer lint:php commands fail from a clean worktree before reaching feature-specific checks:

  • FrontendPathResolverRuntimeTest.php boots the installed plugin, then its probe require_onces the worktree resolver and fatals because ec_normalize_frontend_path() is already declared.
  • The configured PHPCS target reports existing errors in inc/taxonomy/network-terms.php and inc/Abilities/NetworkTermAbilities.php.

These failures were reproduced while verifying #156. The remaining standalone PHP and JavaScript suites pass when run after the runtime blocker, and the new feature's focused PHPCS check passes.

Acceptance criteria

  • Runtime probes exercise worktree code without redeclaring the deployed plugin's functions and without modifying production.
  • composer test reaches and executes every configured test.
  • composer lint:php passes on its configured target, with intentional naming exceptions narrowly documented where needed.
  • The commands remain suitable for local worktrees and automated runners.
  • Do not hand-edit version targets or docs/CHANGELOG.md; release automation owns them.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions