Test pyramid
- Unit tests: fast and deterministic.
- Integration tests: behavior across runtime boundaries.
- Contract tests: CLI contracts and user-visible behavior.
- Docker-backed integration tests: opt-in suites.
Make targets
| Target | What it runs |
|---|---|
make test | go test ./... |
make test-unit | Unit tests only |
make test-integration | go test ./test/integration/... |
make test-contract | go test ./test/contract/... |
make test-all | Unit + integration + contract |
make test-expensive | Docker integration + expensive rebuild tests |
make coverage | Coverage gate checks |
make ci | Full CI target set |
Recommended command flow
make buildmake test-unitmake test-integrationmake test-contractmake coverage
Docker-backed integration tests (opt-in)
Enable Docker integration mode:Expensive preset rebuild tests (opt-in)
The simplest path:Coverage gates
Coverage thresholds are configured intest/coverage-baseline.env.
Current defaults:
AMIKA_MIN_INTERNAL_COVERAGE=70.0AMIKA_MIN_CMD_COVERAGE=35.0