pest-testing

Automate Pest test writing, editing, and execution in Laravel applications.

5|1|Updated Feb 17, 2024
One-click install
npx skills add https://github.com/karuhun-developer/template-laravel-livewire --skill pest-testing-karuhun-developer
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pest-testing
Source: https://github.com/karuhun-developer/template-laravel-livewire/tree/main/.cursor/skills/pest-testing
Command: npx skills add https://github.com/karuhun-developer/template-laravel-livewire --skill pest-testing-karuhun-developer

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill streamlines the process of writing, editing, fixing, and refactoring tests in Laravel projects using Pest, a modern testing framework.

Core Features & Use Cases

  • Test Writing & Editing: Triggered for test-related activities, including converting PHPUnit to Pest.
  • Test Execution: Offers commands to run tests, including minimal and all tests.
  • Browser Testing: Provides instructions for creating and running browser tests.
  • Smoke Testing: Validates multiple pages for JavaScript errors.
  • Use Case: When you need to ensure your Laravel application's tests are up-to-date and functioning correctly, activate this skill to get started.

Quick Start

Run all Pest tests in your Laravel project with the command: php artisan test --compact.

Frequently Asked Questions about pest-testing

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

FAQPage Schema
How do I run Pest tests in a Laravel project?

Run all Pest tests in your Laravel project using the command `php artisan test --compact` to execute test cases and verify code quality efficiently.

Can I convert PHPUnit tests to Pest in Laravel?

This skill supports converting PHPUnit tests to Pest, allowing you to refactor existing test cases into the modern Pest testing framework within your Laravel environment.

How do I perform browser testing in Laravel using Pest?

You can perform browser testing in Laravel using Pest by utilizing the skill's provided instructions to create and execute browser tests that validate user interactions across pages.

What is smoke testing for Laravel applications and does this support it?

Smoke testing validates multiple pages for JavaScript errors to ensure frontend stability. This skill provides specific smoke testing commands to detect JavaScript errors across Laravel pages.

Do I need Pest and Laravel installed to use automated test commands?

Yes, both Pest and Laravel are required. The testing automation requires these frameworks to execute test cases, run browser tests, and ensure code quality within your application.

What is the best way to refactor Laravel tests using Pest?

Automating the process of writing, editing, and fixing tests with Pest is the best way to refactor Laravel tests, ensuring your application tests remain up-to-date and functioning correctly.