forked from bots-garden/ori
| ✨ Workspace panel, selectors, previews, desktop app, sandbox template, resizable file tree, light/dark theme | 1 | # How to run the tests |
| 2 | ||
| 3 | This guide shows how to run Ori's test suites. It assumes the frontend dependencies are installed (`make deps`). | |
| 4 | ||
| 5 | ## Steps | |
| 6 | ||
| 7 | 1. From the repository root, run everything: | |
| 8 | ||
| 9 | ```bash | |
| 10 | make test | |
| 11 | ``` | |
| 12 | ||
| 13 | This runs the Go suite (`go test ./...`) followed by the frontend suite (`vitest run`). Both must end green. | |
| 14 | ||
| 15 | ## Variants | |
| 16 | ||
| 17 | - Backend only: `make test-go` — unit tests for every package plus an end-to-end test that compiles the mock agent, spawns it as a real subprocess and drives a real WebSocket client through a full turn. | |
| 18 | - Frontend only: `make test-ui` — reducer, WebSocket client and component tests under jsdom. | |
| 19 | - With the race detector: `go test -race ./...`. | |
| 20 | - Skipping the end-to-end test (fast feedback): `go test -short ./...`. | |
| 21 | ||
| 22 | ## See also | |
| 23 | ||
| 24 | - Where each suite lives and what it covers: [explanation: architecture](../explanation/architecture.md) |