Install any skill in seconds. Free to start, no credit card required.
Get Started Free →loulanyue/laravel-tdd
Test-driven development for Laravel with PHPUnit and Pest, factories, database testing, fakes, and coverage targets.
Passed 22 of 22 test cases with the skill, and 21 of 22 without it.
1 fixed21 passed either way0 still failing0 broke
Tokens, turns and time describe resource use, not a dollar price.
A test case the skill fixed. Same model, same prompt, with and without the skill.
I need to add automated tests for a Laravel backend endpoint that renders an Inertia.js frontend page displaying user orders. Can you walk me through the test setup, showing how to handle user authentication during testing, clean up database state after each test, and assert on Inertia component properties?
| Checked | Without skill | With skill |
|---|---|---|
| Uses Pest test functions instead of PHPUnit class-based tests. | Missed | Passed |
| Includes the RefreshDatabase trait for state cleanup. | Passed | Passed |
| Uses assertInertia to inspect the rendered component properties. | Passed | Passed |
The instructions your model reads when the skill loads.
Test-driven development for Laravel applications using PHPUnit and Pest with 80%+ coverage (unit + feature).
Choose layers based on scope:
RefreshDatabase for most feature/integration tests (runs migrations once per test run, then wraps each test in a transaction when supported; in-memory databases may re-migrate per test)DatabaseTransactions when the schema is already migrated and you only need per-test rollbackDatabaseMigrations when you need a full migrate/fresh for every test and can afford the costUse RefreshDatabase as the default for tests that touch the database: for databases with transaction support, it runs migrations once per test run (via a static flag) and wraps each test in a transaction; for :memory: SQLite or connections without transactions, it migrates before each test. Use DatabaseTransactions when the schema is already migrated and you only need per-test rollbacks.
test cases passed, vs 21 / 22 without
Published skills whose descriptions closely match this one, with their headline benchmark lift.
More skills from the same source and nearby in the registry, with their headline benchmark lift.