phpunit-unit-test-writing

Generate and review Shopware 6 PHPUnit unit tests for PHP source files.

41|5|Updated Oct 22, 2025
One-click install
npx skills add https://github.com/shopwareLabs/ai-coding-tools --skill phpunit-unit-test-writing
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: phpunit-unit-test-writing
Source: https://github.com/shopwareLabs/ai-coding-tools/tree/main/plugins/test-writing/skills/phpunit-unit-test-writing
Command: npx skills add https://github.com/shopwareLabs/ai-coding-tools --skill phpunit-unit-test-writing

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill orchestrates the generation and rigorous review of PHPUnit unit tests for Shopware 6, reducing manual toil and elevating test quality.

Core Features & Use Cases

  • Orchestrates end-to-end test generation, review, and fixes for PHP source files.
  • Supports single-file and multi-file workflows with structured phase transitions (Generation → Coverage Exclusion → Review → Fix Loop → Final Report).
  • Produces clear compliance outcomes (COMPLIANT vs NON-COMPLIANT) and detailed fix logs.

Quick Start

Provide the path to a PHP source file to trigger automated PHPUnit test generation plus review, and the Skill will run generation, iterative fixes, and final reporting.

Frequently Asked Questions about phpunit-unit-test-writing

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

FAQPage Schema
How do I generate PHPUnit unit tests for Shopware 6 PHP source files?

PHPUnit unit test generation for Shopware 6 is automated by providing the path to a PHP source file to trigger the workflow. The process coordinates test generation, iterative fixes, and final compliance reporting across single-file or multi-file projects.

What is the workflow for automating Shopware 6 PHPUnit test generation and review?

The workflow for automating Shopware 6 PHPUnit tests follows structured phase transitions: Generation, optional Coverage Exclusion, Review, up to four Fix iterations, and Final Report. It enforces must-fix rules and produces COMPLIANT or NON-COMPLIANT outcomes.

Can I exclude specific code coverage areas when generating unit tests for PHP files?

Coverage exclusion is supported as an optional phase within the unit test generation workflow for PHP files. After initial test generation, you can adjust coverage targets before the review and fix loop phases begin.

Does automated unit test generation work with multi-file Shopware 6 projects?

Automated unit test generation supports both single-file and multi-file Shopware 6 projects. The workflow coordinates generation, review, iterative fixes, and final reporting across all included PHP source files.

How does the iterative fix loop work during PHPUnit test review?

The iterative fix loop runs after the review phase and allows up to four fix iterations for generated PHPUnit tests. It enforces mandatory must-fix rules and logs optional warnings before producing the final compliance report.

What compliance outcomes does the automated PHPUnit test review produce?

The automated PHPUnit test review produces clear COMPLIANT or NON-COMPLIANT compliance outcomes. It also generates detailed fix logs documenting the iterative corrections applied during the review phase.