# Testing conventions

## Requirement

Every product domain ships PHPUnit Feature tests under:

`laravel/tests/Feature/Domains/{Feature}/`

Platform/Jetstream coverage may remain under `laravel/tests/Feature/`.

## What to cover

- Happy paths for web and/or API routes the domain owns
- Authorization failures and team isolation
- Validation errors for form requests the domain owns

## Running tests

```bash
cd laravel && php artisan test
```

## Factories

When a domain introduces models, prefer domain-owned or clearly named factories so removing the domain also removes its factories.
