@@ -90,3 +90,8 @@ Follow the VSDD pipeline **religiously**. No shortcuts, no skipping phases.
|
||||
- Routes are organized by feature in `routes/` modules
|
||||
- All public API endpoints return proper HTTP status codes
|
||||
- Configuration via environment variables with sensible defaults
|
||||
- **Tests live in separate files**, never inline in the main source file:
|
||||
- Unit tests for private functions: `#[cfg(test)] mod tests` in the same file (e.g., `forest_client.rs`)
|
||||
- Route/integration tests: `src/tests/` directory with files per feature area (e.g., `auth_tests.rs`, `platform_tests.rs`)
|
||||
- Mock infrastructure and test helpers: `src/test_support.rs` (`pub(crate)` items)
|
||||
- Keep production source files clean - no test code bloat
|
||||
|
||||
Reference in New Issue
Block a user