Run PHPUnit tests and fix failures using intelligent agent delegation...
This skill provides intelligent PHPUnit test execution and fixing through specialized agent delegation.
This skill delegates to specialized agents via the Task tool:
Launch runner agent:
Use Task tool:
description: "Run PHPUnit test suite"
subagent_type: "php-qa-ci_phpunit-runner"
prompt: "Run PHPUnit tests and provide summary"
Receive runner output with log location
If failures detected:
Use Task tool:
description: "Fix PHPUnit test failures"
subagent_type: "php-qa-ci_phpunit-fixer"
prompt: "Fix test failures in log: {log_path}"
After fixes applied, re-run via runner agent
Repeat cycle until:
Check if recent log exists in var/qa/phpunit_logs/
If log found:
If no log:
Launch opus model or ask human when:
The phpunit-runner agent (haiku model) handles:
See .claude/agents/php-qa-ci_phpunit-runner.md for agent implementation details.
The phpunit-fixer agent (sonnet model) handles:
See .claude/agents/php-qa-ci_phpunit-fixer.md for agent implementation details.