generate-test

Generates PestPHP tests for PHP code across unit, feature, browser, smoke, and architecture types.

Updated Feb 11, 2026
One-click install
npx skills add https://github.com/juniorfontenele/ai-guidelines --skill generate-test-juniorfontenele
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: generate-test
Source: https://github.com/juniorfontenele/ai-guidelines/tree/main/.agents/skills/generate-test
Command: npx skills add https://github.com/juniorfontenele/ai-guidelines --skill generate-test-juniorfontenele

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill automates the creation of comprehensive tests for your code, ensuring reliability and catching regressions before they impact users.

Core Features & Use Cases

  • Automated Test Generation: Creates unit, feature, and browser tests using PestPHP.
  • Test Necessity Analysis: Determines the appropriate test types based on code complexity and requirements.
  • Use Case: When you implement a new feature, use this Skill to automatically generate all necessary tests, ensuring the feature works as expected and doesn't break existing functionality.

Quick Start

Use the generate-test skill to create tests for the VulnerabilityService class.

Frequently Asked Questions about generate-test

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

FAQPage Schema
How do I generate PestPHP tests for my PHP code automatically?

You can generate PestPHP tests automatically by invoking a test generation tool that analyzes your PHP code and creates unit, feature, browser, smoke, and architecture tests to ensure reliability and catch regressions.

What types of PHP tests do I need for comprehensive code coverage?

Comprehensive PHP test coverage requires unit, feature, browser, smoke, and architecture tests. Analyzing test necessity based on code complexity helps determine the appropriate test types needed for your specific requirements.

Can I integrate automated testing into my PHP feature implementation workflow?

Yes, automated test generation supports integration within task implementation workflows, allowing you to automatically create necessary tests when implementing new PHP features to ensure expected functionality without breaking existing code.

Does the generate-test tool work with PHPUnit and PestPHP frameworks?

The tool primarily generates PestPHP tests for PHP code, covering multiple test types. It analyzes test necessity and adheres to project testing guidelines to ensure all generated tests pass successfully.

What's the best way to ensure generated PHP tests pass and follow project guidelines?

The best way to ensure generated PHP tests pass is using a tool that adheres to project testing guidelines defined in your documentation, analyzes code complexity, and verifies that all generated tests pass successfully.

Why should I analyze test necessity before writing PHP unit or feature tests?

Analyzing test necessity before writing PHP unit or feature tests ensures you create the appropriate test types based on code complexity and requirements, avoiding unnecessary tests while maintaining robust coverage for regressions.