nandi/oripublic Fork 0
ca7e020cbb6442f047e0002eb9831ba29f8a17af
Commits
Clone
git clone https://git.rickub.com/nandi/ori.git
git clone ssh://git@rickub.com/nandi/ori.git

Host key fingerprint (ed25519): SHA256:iycHnxEyq0Q7uyVpB7JlznP0G7JrTPXLYRcAU5CSLhc — verify it before your first connect.

forked from bots-garden/ori

run-the-tests.md · 24 lines · 892 Bmarkdown
Blame HistoryOpen raw

How to run the tests

This guide shows how to run Ori's test suites. It assumes the frontend dependencies are installed (make deps).

Steps

  1. From the repository root, run everything:

    make test
    

    This runs the Go suite (go test ./...) followed by the frontend suite (vitest run). Both must end green.

Variants

  • 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.
  • Frontend only: make test-ui — reducer, WebSocket client and component tests under jsdom.
  • With the race detector: go test -race ./....
  • Skipping the end-to-end test (fast feedback): go test -short ./....

See also

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# How to run the tests

This guide shows how to run Ori's test suites. It assumes the frontend dependencies are installed (`make deps`).

## Steps

1. From the repository root, run everything:

   ```bash
   make test
   ```

   This runs the Go suite (`go test ./...`) followed by the frontend suite (`vitest run`). Both must end green.

## Variants

- 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.
- Frontend only: `make test-ui` — reducer, WebSocket client and component tests under jsdom.
- With the race detector: `go test -race ./...`.
- Skipping the end-to-end test (fast feedback): `go test -short ./...`.

## See also

- Where each suite lives and what it covers: [explanation: architecture](../explanation/architecture.md)