Testing Architecture
This directory contains comprehensive test coverage for CUI services.
## Testing Philosophy
- **Prefer real implementations** over mocks when testing (per project guidelines)
- **Comprehensive unit test coverage** for all services
1.1k16mo agoReviewMountCreate a free account to mount
which supports global fetch
When using try/catch, never suppress errors. Always console.error any errors.
# Tests
Use vitest
Place test files next to the file they test using a .test.ts extension
1.1k12mo agoReviewMountCreate a free account to mount
over `interface`
- Use discriminated unions when appropriate
- Prefer readonly where possible
- Avoid unnecessary generics
---
## Testing Rules
- Tests must be deterministic
- Keep tests readable and explicit
- Avoid duplicated setup logic
1.1k2mo agoReviewMountCreate a free account to mount
flutter analyze # lints: package:flutter_lints, no custom rules
make -C .. desktop-test # bounded VM suite, workers + receipt
flutter test test/terminal_session_test.dart # one file
flutter test test/ws_conn_test.dart --plain-name "reconnects
1.1k59d agoReviewMountCreate a free account to mount
erify, every iteration.
- Models: Opus for planning/architecture only; Sonnet for development and functional testing; Haiku for unit tests, monitoring, and parallelizable work.
- Providers: Claude Code full (Tier 1); Cline reduced
1.1k6mo agoReviewMountCreate a free account to mount
must first be added to `allowBuilds` in `pnpm-workspace.yaml`.
Before committing to GitHub, `pnpm run test:cli` must pass. New scripts under `packages/app/server/**` must come with unit tests in `packages/app/test/`. Update
1.1k2mo agoReviewMountCreate a free account to mount
community. Tel-Agent commits to the
twenty-four named above (D-044): supported, tested, shipped as official applications.
Anything beyond them is a community extension carrying no commitment from this
1.1k3mo agoReviewMountCreate a free account to mount
commit)
- **Run all checks**: `make all` or `pre-commit run --all-files`
- **Run tests**: `make test`
- **Build docs**: `make docs` or `make docs-serve` (local development)
### Single Test Commands
1.1k7mo agoReviewMountCreate a free account to mount
agents/visual-critic.md` are optional
read-only specialists. They are not credential or approval boundaries.
- `tests/` contains deterministic offline coverage. Public CI never calls a
paid provider.
## Provider state, verified
1.1k3mo agoReviewMountCreate a free account to mount
model)
- **Default Branch**: `main`
## Common Commands
```bash
# Build
docker build -t octo-server .
# Run tests (single module)
go test ./modules/group/...
go test ./modules/message/ -run TestSendMsg
# Run all tests
go test
1.1k6mo agoReviewMountCreate a free account to mount
Development Tools
```bash
# Type checking
pyright
# Code formatting and linting
ruff check
ruff format
```
### Testing and Development
- Access the web interface at <http://localhost:8080> after running `docker compose
1k17mo agoReviewMountCreate a free account to mount
install` (runs `uv sync --extra all --extra dev` + pre-commit install) |
| Run all lib tests | `make test` |
| Run a single test | `uv run pytest libs/tests/core/test_toolkit.py::TestClass::test_method` |
| Lint + type
1k7mo agoReviewMountCreate a free account to mount
build` then `npm start`
- Full local gate (headers + format + client typecheck + server + client tests): `npm run verify`
- Server tests: `npm run test:server`
- Client tests: `npm run test:client
1k4mo agoReviewMountCreate a free account to mount
directory tree in this file and the table in README.md
**Categories**: `development`, `design`, `productivity`, `testing`, `security`, `database`, `monitoring`, `deployment`
## Creating a Skill
See [`SKILL_SHAPE.md`](SKILL_SHAPE.md) for the canonical authoring guide
1k9mo agoReviewMountCreate a free account to mount
A file Claude Code reads at the start of every session. It holds the commands, conventions and warnings the agent needs for this project.
Where does it go?
At the repository root. Claude Code also reads CLAUDE.md files in subdirectories when it works there.
What should it contain?
Build and test commands, the project's layout, conventions that aren't obvious from the code, and mistakes to avoid. Short files tend to work better than long ones.
CLAUDE.md or AGENTS.md?
Claude Code reads CLAUDE.md; most other agents read AGENTS.md. Many projects keep one and point the other at it.