test-generator

Generate and run PHPUnit and Pest tests for Laravel projects.

Updated Jan 23, 2026
One-click install
npx skills add https://github.com/VictorSmaniotto/degestao --skill test-generator-victorsmaniotto
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: test-generator
Source: https://github.com/VictorSmaniotto/degestao/tree/main/.agent/skills/test-generator
Command: npx skills add https://github.com/VictorSmaniotto/degestao --skill test-generator-victorsmaniotto

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill generates automated tests in PHP (PHPUnit and Pest) to validate business rules and increase code coverage in Laravel projects, reducing manual testing effort.

Core Features & Use Cases

  • Unit tests for Models, Services, and Helpers
  • Feature/API tests for Controllers and Endpoints
  • Mocks & fixtures: use factories and mock objects to simulate complex scenarios

Quick Start

Create and execute automated tests for Models, Services, Controllers, and APIs in a Laravel project.

Frequently Asked Questions about test-generator

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

FAQPage Schema
How do I automate PHP tests for Laravel controllers and API endpoints?

Automated PHP tests for Laravel controllers and API endpoints are generated using PHPUnit and Pest, applying standard test structures with TestCase and CreatesApplication. This validates business rules across services and endpoints using factories and mocks.

Can I generate both unit and feature tests for Laravel models and services?

Yes, both unit and feature tests for Laravel models, services, and helpers are generated using PHPUnit and Pest. The automated test creation covers models, controllers, and endpoints using test utilities, factories, and mock objects.

What's the best way to set up mocks and factories for Laravel test automation?

Mocks and factories for Laravel test automation are configured using PHPUnit and Pest test utilities. The automated test generation applies factories and mock objects to simulate complex scenarios across models, services, and API endpoints.

Does this test automation approach support both PHPUnit and Pest in Laravel?

Yes, test automation for Laravel projects supports both PHPUnit and Pest. The generated tests enforce a standard test structure with TestCase and CreatesApplication, covering unit, feature, and API tests across controllers and endpoints.

Why use automated PHP tests for Laravel API endpoints and services?

Automated PHP tests for Laravel API endpoints and services validate business rules and increase code coverage, reducing manual testing effort. PHPUnit and Pest generate unit, feature, and API tests using factories and mocks to simulate complex scenarios.

Do I need specific test utilities to run PHPUnit and Pest tests in Laravel?

Yes, running PHPUnit and Pest tests in Laravel requires specific test utilities, including TestCase and CreatesApplication. The automated test generation enforces this standard structure to ensure consistent unit, feature, and API test execution.