Appearance
Testing
Test Stack
The project uses:
- Pest
- Laravel testing helpers
- parallel execution
Test Command
bash
composer testThis runs:
bash
php artisan test --parallel --processes=4Test Layout
Tests are grouped by surface:
tests/Feature/Dashboardtests/Feature/Websitetests/Feature/Api/Dashboardtests/Feature/Api/Websitetests/Feature/Global
This mirrors the actual app architecture and route layout.
What the Existing Suite Covers
The current suite covers:
- dashboard auth flows
- website auth flows
- profile flows
- settings
- roles and admins
- users
- languages and language tokens
- memos
- static pages
- shortened URLs
- impersonation
- uploads
- API auth and API profile flows
Good Test Boundaries for New Features
- auth guard correctness
- permission enforcement
- CRUD happy paths
- soft-delete and restore behavior
- locale-aware route behavior
- API response shape when applicable
Practical Rule
Test starter conventions, not only business logic.
If a module depends on:
- datatables
- route-based permissions
- translatable fields
- shared auth flow
then the tests should prove those integrations work together.