refactor: group the e2e tests by capability #6

Merged
aleksei merged 1 commit from refactor/e2e-test-groups into main 2026-10-20 23:16:26 +00:00
Owner

Group the eve_e2e integration tests by capability, one auto-discovered test crate per group, while leaving tests/entity/ and tests/system/ unchanged.

Layout

tests/
  app/{main.rs,inproc.rs}
  broker/{main.rs,inproc.rs,nats.rs}
  db/{main.rs,mongo.rs,sqlite.rs}
  entity/            (unchanged)
  gateway/{main.rs,http.rs}
  registry.rs        (substrate, top level)
  storage/{main.rs,fs.rs,s3.rs}
  system/            (unchanged)
  tsdb/{main.rs,clickhouse.rs,parquet.rs}
  • Every group is rooted at tests/<group>/main.rs, so a new test is a file plus a mod line; no [[test]] entry is needed.
  • registry.rs stays top-level: it tests the composition root, not an adapter, and it uses the network E2eApp.
  • The local full-stack capstone moved to tests/app/inproc.rs.

Docs

  • adr/test.md: describes the capability grouping, the new file paths and the group/module filter commands.
  • adr/sqlite.md and adr/inproc_broker.md: paths updated.
  • README.md: the service-free test command now uses the group targets.

Verification

  • cargo fmt --all -- --check
  • cargo clippy --workspace --all-targets -- -D warnings
  • cargo test -p eve_e2e --test broker --test db --test tsdb --test storage --test app — 14 + 11 + 13 + 22 + 2 tests passed; network halves skipped without their *_URL.
  • cargo test -p eve_e2e --test gateway --no-run
  • cargo test -p eve_e2e --test registry --no-run
  • cargo test -p eve_e2e --test entity --test system --no-run
  • No references to the old top-level test paths remain.

The Forgejo instance is git.kosyrev.name, repository zoo/eve.

Group the `eve_e2e` integration tests by capability, one auto-discovered test crate per group, while leaving `tests/entity/` and `tests/system/` unchanged. ## Layout ``` tests/ app/{main.rs,inproc.rs} broker/{main.rs,inproc.rs,nats.rs} db/{main.rs,mongo.rs,sqlite.rs} entity/ (unchanged) gateway/{main.rs,http.rs} registry.rs (substrate, top level) storage/{main.rs,fs.rs,s3.rs} system/ (unchanged) tsdb/{main.rs,clickhouse.rs,parquet.rs} ``` - Every group is rooted at `tests/<group>/main.rs`, so a new test is a file plus a `mod` line; no `[[test]]` entry is needed. - `registry.rs` stays top-level: it tests the composition root, not an adapter, and it uses the network `E2eApp`. - The local full-stack capstone moved to `tests/app/inproc.rs`. ## Docs - `adr/test.md`: describes the capability grouping, the new file paths and the group/module filter commands. - `adr/sqlite.md` and `adr/inproc_broker.md`: paths updated. - `README.md`: the service-free test command now uses the group targets. ## Verification - `cargo fmt --all -- --check` - `cargo clippy --workspace --all-targets -- -D warnings` - `cargo test -p eve_e2e --test broker --test db --test tsdb --test storage --test app` — 14 + 11 + 13 + 22 + 2 tests passed; network halves skipped without their `*_URL`. - `cargo test -p eve_e2e --test gateway --no-run` - `cargo test -p eve_e2e --test registry --no-run` - `cargo test -p eve_e2e --test entity --test system --no-run` - No references to the old top-level test paths remain. The Forgejo instance is `git.kosyrev.name`, repository `zoo/eve`.
aleksei deleted branch refactor/e2e-test-groups 2026-10-20 23:16:26 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
zoo/eve!6
No description provided.