Server overhaul: one test harness in tests/common for every test binary

core_api/common.rs becomes tests/common/mod.rs and sync_api/m4.rs tests/common/sync_fixtures.rs; each binary
includes them through #[path] (the binaries of SPEC §14.7 stay as they are). TempDir's Default moves into the
harness instead of three copies; the skeleton helpers take ids, tokens and TempDir from it. Milestone wording in
test docs and the server README replaced by what the code does; README seams and test layout updated.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01TQd3pEP9UeN2uifbHknQ7B
This commit is contained in:
2026-10-18 22:31:04 +02:00
parent 6c405e142d
commit 8cb42f85a9
19 changed files with 118 additions and 146 deletions
@@ -1,16 +1,10 @@
//! M4 scheduler tests (SPEC §9.5 scheduler cases, §14.1 pruning, D-021): the daily run planned at local 06:00 and
//! Scheduler tests (SPEC §9.5 scheduler cases, §14.1 pruning, D-021): the daily run planned at local 06:00 and
//! 04:00 across both DST changes, the run at start, clock jumps with an injected clock, catch-up after downtime
//! through M3's generation function, paused and deleted templates skipped, and the 90-day pruning.
//! through the recurring generation, paused and deleted templates skipped, and the 90-day pruning.
#[path = "../core_api/common.rs"]
#[path = "../common/mod.rs"]
pub mod common;
#[path = "../sync_api/m4.rs"]
pub mod m4;
#[path = "../common/sync_fixtures.rs"]
pub mod sync_fixtures;
mod scheduler;
impl Default for common::TempDir {
fn default() -> Self {
Self::new()
}
}