A
aureuserp-test-case-builder
About aureuserp-test-case-builder
A skill for building reusable Pest feature tests for AureusERP plugin APIs. It emphasizes factory-based setup, separated security and bootstrap helpers, and test-side fixes before application changes.
Key features
- 01Pest tests for API endpoints
- 02Factory-first setup and payloads
- 03Separate security and bootstrap helpers
- 04Transactional database wiring
- 05Reusable plugin-scoped tests
Use cases
- 01Testing API endpoint behavior and validation
- 02Refactoring API tests and helpers
- 03Generating a plugin API test file
Install
Copy the command and run it in a terminal.
$
npx skills add https:/ / github.com/ aureuserp/ agent-skills --skill aureuserp-test-case-builderAfter installing, type/aureuserp-test-case-builderin Claude Code to confirm it loaded.
Bundled filesreferences/api.md
Details
From the project READMEAureusERP Test Case Builder
Use this skill to build plugin API tests with Pest using test-only fixes and reusable helpers.
Scope Tracks
- API test-case track (active now)
- Follow
references/api.mdfor end-to-end workflow, helper boundaries, assertions, and guardrails.
- Filament test-case track (reserved for future)
- Do not invent Filament-specific testing rules in this skill yet.
- Keep API conventions unchanged.
- When Filament guidance is added later, it should be added as separate references (for example
references/filament-*.md) and selected explicitly by task type.
Core Rules
- Use Pest feature tests for API endpoints (
getJson,postJson,patchJson,deleteJson). - Prefer factories for setup and payload creation.
- Keep helper responsibility split strict:
SecurityHelperfor auth/permissions/guards.TestBootstrapHelperfor non-security bootstrap and plugin installation.
- Do not use
RefreshDatabaseorLazilyRefreshDatabasein test files; use globalDatabaseTransactionswiring. - Prefer test/helper fixes before app code edits.
- Do not use skip-as-solution.
Quick Routing
- API controller endpoint tests (
index/store/show/update/destroy, auth, validation, restore/force-delete): usereferences/api.md. - API refactor/bugfix with helper cleanup: use
references/api.md. - Template generation for a new plugin API test file: use
references/api.md.
Output Expectations
- Keep tests plugin-scoped and reusable.
- Keep assertions deterministic and aligned with JSON resources.
- Keep payloads factory-first with targeted overrides only.
- Keep install/bootstrap non-interactive and environment-safe.
Comments
Markdown supported