ensi-tests

Create Pest PHP tests for Ensi Laravel API endpoints and database models.

1|2|Updated Mar 25, 2026
One-click install
npx skills add https://github.com/ensi-platform/skills --skill ensi-tests
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ensi-tests
Source: https://github.com/ensi-platform/skills/tree/main/skills/ensi-tests
Command: npx skills add https://github.com/ensi-platform/skills --skill ensi-tests

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires pest, and includes scripts (resource) components.

What problem does it solve?

This Skill automates the creation of tests in Ensi Laravel projects, reducing manual effort and ensuring high code quality through automated testing.

Core Features & Use Cases

  • Automated Test Creation: Quickly generate component, integration, and unit tests based on project needs.
  • Test File Organization: Automates test file and factory creation with the correct structure and locations.
  • Use Case: When you need to write tests for a new API endpoint or validate a database model, this Skill helps you get started with minimal effort.

Quick Start

Run 'ensi-tests create component' to generate a new component test for the specified endpoint.

Frequently Asked Questions about ensi-tests

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

FAQPage Schema
How do I automate Pest PHP test creation for Laravel API endpoints?

Automate Pest PHP test creation by generating component, integration, and unit tests with base classes and correct file structure. This provides standard conventions for testing API endpoints in Laravel projects with minimal manual effort.

What is the best way to structure database model tests in a Laravel project?

Structuring database model tests involves using automated generation to create test files and factories in correct locations. This enforces project conventions and provides base classes for validating database models efficiently using Pest PHP.

Do I need Pest v2.0 to run automated Laravel tests?

Yes, you need Pest v2.0 and PHP installed to execute the generated automated Laravel tests. The test creation automation relies on Pest v2.0 features to provide the base classes and structure required for the testing conventions.

Can I generate both unit and integration tests for Ensi Laravel projects?

Yes, you can generate unit, integration, and component tests for Ensi Laravel projects. The automation creates the necessary test files and factories with the correct structure for both API endpoint and database model testing.

How do I quickly generate a new component test for a specified endpoint?

Quickly generate a new component test by running the 'ensi-tests create component' command. This automates the creation of the test file and its structure for the specified API endpoint, reducing manual setup effort.