phpunit-runner

Execute PHPUnit test suites and delegate failure fixes to agents.

1|Updated Nov 11, 2021
One-click install
npx skills add https://github.com/LongTermSupport/php-qa-ci --skill phpunit-runner
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: phpunit-runner
Source: https://github.com/LongTermSupport/php-qa-ci/tree/main/.claude/skills/phpunit-runner
Command: npx skills add https://github.com/LongTermSupport/php-qa-ci --skill phpunit-runner

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires python3, and includes scripts (resource) components.

What problem does it solve?

Manually running PHPUnit tests, analyzing failures, applying fixes, and then re-running tests is a repetitive and time-consuming cycle. This Skill automates the entire run-fix-run loop, ensuring tests pass with minimal developer intervention.

Core Features & Use Cases

  • Automated Test Execution: Runs PHPUnit tests (full suite, specific path, or file) using an optimized agent.
  • Intelligent Fix Cycle: Automatically detects failures, delegates to a fixer agent, applies fixes, and re-runs tests until clean.
  • Use Case: When starting a new feature, simply say "run tests" and this Skill will execute your PHPUnit suite, identify any regressions, fix them, and confirm all tests pass, allowing you to focus on development.

Quick Start

Use the phpunit-runner skill to run all PHPUnit tests and fix any failures.

Frequently Asked Questions about phpunit-runner

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I run PHPUnit tests and automatically fix failures?

PHPUnit test execution with automated fixing runs your test suite, detects failures, applies fixes through intelligent agent delegation, and re-runs tests until they pass. This eliminates manual cycles of running, analyzing, and fixing tests.

Can I run PHPUnit tests on specific files or paths?

Yes, phpunit-runner executes full test suites, specific directory paths, or individual test files. You specify the scope, and the Skill handles execution and any required fixes.

What happens when PHPUnit tests fail?

Failed tests trigger automatic delegation to a fixer agent, which analyzes JUnit XML logs, applies corrections, and re-runs the suite. If issues persist after multiple cycles, the Skill escalates to human review.

Do I need any setup before using the phpunit-runner Skill?

Python3 is required as a dependency. Ensure your PHP environment and PHPUnit are configured; the Skill handles test execution and failure analysis from there.

How does phpunit-runner differ from manually running PHPUnit?

Manual execution requires you to run tests, read failures, edit code, and re-run repeatedly. This Skill automates the entire cycle—detecting failures, applying fixes, and re-running—until tests pass or human intervention is needed.

What output does phpunit-runner provide?

The Skill parses JUnit XML logs from PHPUnit, reports test results, documents applied fixes, and confirms final pass/fail status so you know the suite health without manual log parsing.