phpunit-fixer

Parse PHPUnit JUnit XML logs to identify and fix failing tests.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Manually sifting through PHPUnit logs to identify and fix test failures is time-consuming and error-prone. This Skill automates the analysis and fixing process, allowing developers to focus on new features rather than debugging existing tests.

Core Features & Use Cases

  • Log Analysis: Automatically parses PHPUnit JUnit XML logs to identify failing tests and error patterns.
  • Intelligent Fixes: Delegates to a specialized agent to implement common fixes for identified issues.
  • Use Case: After a CI run reports 20 PHPUnit failures, simply ask the AI to "fix the test failures" and this Skill will analyze the latest log and apply necessary code changes.

Quick Start

Use the phpunit-fixer skill to fix the test failures in the latest PHPUnit log.

Frequently Asked Questions about phpunit-fixer

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

FAQPage Schema
How do I automatically fix PHPUnit test failures from CI logs?

PHPUnit-fixer analyzes your latest PHPUnit JUnit XML log to identify failing tests and error patterns, then applies automated fixes to your code. Simply ask it to fix test failures and it discovers the log, groups errors by pattern, and implements corrections without re-running tests.

Can I fix multiple PHPUnit failures at once from a single log file?

Yes. PHPUnit-fixer parses all failures in your log file, groups them by error pattern, and delegates fixes to a specialized agent. It handles batch analysis and applies changes across multiple failing tests in one operation.

What happens if I have multiple PHPUnit log files?

PHPUnit-fixer auto-discovers and uses your most recent PHPUnit or JUnit XML log file. You don't need to specify which log; it finds the latest one automatically.

Does PHPUnit-fixer require me to run tests before fixing failures?

No. PHPUnit-fixer works directly from existing test failure logs without executing tests. It analyzes the log output, identifies issues, and applies fixes based on error patterns.

What types of test failures can PHPUnit-fixer handle?

PHPUnit-fixer identifies and fixes common PHPUnit failures by parsing JUnit XML logs and recognizing error patterns. It delegates specialized fixes to an agent, handling typical assertion failures, setup issues, and configuration problems.

What files does PHPUnit-fixer modify when fixing tests?

PHPUnit-fixer reports all modified files after applying fixes. It updates only the test files and source code necessary to resolve identified failures, giving you full visibility into what changed.