docs/ci: note unit tests in README, gate release build to master
Some checks failed
CI / Check / Test (push) Failing after 43s
CI / Release build (push) Has been skipped

This commit is contained in:
2026-05-14 00:43:07 +02:00
parent edc1f6c850
commit f80d3b5983
2 changed files with 27 additions and 2 deletions

View File

@@ -153,9 +153,12 @@ Supports review logging, bulk CSV import (column order matches the export format
## Test
```bash
cargo test
cargo test # full workspace (requires DATABASE_URL for sqlx offline checks)
cargo test -p application # domain-level unit tests only — no database required
```
The `application` crate has unit tests for core use cases (`log_review`, `register`, `login`, `add_to_watchlist`, `delete_review`) backed by in-memory fakes from `domain`'s `test-helpers` feature. These run without a database and are the fastest feedback loop for business logic changes.
## Docker
The image contains both `presentation` (HTTP server) and `worker` (event processor). Run them as separate containers sharing the same data volume: