diff --git a/Cargo.toml b/Cargo.toml index 6b24f5f..8bc1c30 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -28,6 +28,9 @@ members = ["core", "macro", "rig-input"] [profile.dev] debug = 1 +[profile.test] +debug = "line-tables-only" + [workspace.package] version = "0.1.0" edition = "2024" diff --git a/tests/determinism.rs b/tests/cases/determinism.rs similarity index 100% rename from tests/determinism.rs rename to tests/cases/determinism.rs diff --git a/tests/drift.rs b/tests/cases/drift.rs similarity index 100% rename from tests/drift.rs rename to tests/cases/drift.rs diff --git a/tests/idempotence.rs b/tests/cases/idempotence.rs similarity index 100% rename from tests/idempotence.rs rename to tests/cases/idempotence.rs diff --git a/tests/layout.rs b/tests/cases/layout.rs similarity index 100% rename from tests/layout.rs rename to tests/cases/layout.rs diff --git a/tests/pointer.rs b/tests/cases/pointer.rs similarity index 100% rename from tests/pointer.rs rename to tests/cases/pointer.rs diff --git a/tests/pointer_routing.rs b/tests/cases/pointer_routing.rs similarity index 100% rename from tests/pointer_routing.rs rename to tests/cases/pointer_routing.rs diff --git a/tests/retained.rs b/tests/cases/retained.rs similarity index 100% rename from tests/retained.rs rename to tests/cases/retained.rs diff --git a/tests/scroll.rs b/tests/cases/scroll.rs similarity index 100% rename from tests/scroll.rs rename to tests/cases/scroll.rs diff --git a/tests/tasks.rs b/tests/cases/tasks.rs similarity index 100% rename from tests/tasks.rs rename to tests/cases/tasks.rs diff --git a/tests/text_edit.rs b/tests/cases/text_edit.rs similarity index 100% rename from tests/text_edit.rs rename to tests/cases/text_edit.rs diff --git a/tests/unsettled.rs b/tests/cases/unsettled.rs similarity index 100% rename from tests/unsettled.rs rename to tests/cases/unsettled.rs diff --git a/tests/suite.rs b/tests/suite.rs new file mode 100644 index 0000000..b11c307 --- /dev/null +++ b/tests/suite.rs @@ -0,0 +1,32 @@ +//! Every ordinary correctness test, as modules of one target. +//! +//! One binary rather than a dozen: each `tests/*.rs` links the whole +//! dependency graph again, which is most of what `cargo test` spends its time +//! on here. Libtest still runs the cases in parallel, and a filter still +//! selects them -- `cargo test --test suite layout::` for one module. +//! +//! The rigs stay their own targets: `shrink` and `generated` are fuzzers run +//! on their own, and the `*_cost` and `*_diagnostics` ones are measurements. + +#[path = "cases/determinism.rs"] +mod determinism; +#[path = "cases/drift.rs"] +mod drift; +#[path = "cases/idempotence.rs"] +mod idempotence; +#[path = "cases/layout.rs"] +mod layout; +#[path = "cases/pointer.rs"] +mod pointer; +#[path = "cases/pointer_routing.rs"] +mod pointer_routing; +#[path = "cases/retained.rs"] +mod retained; +#[path = "cases/scroll.rs"] +mod scroll; +#[path = "cases/tasks.rs"] +mod tasks; +#[path = "cases/text_edit.rs"] +mod text_edit; +#[path = "cases/unsettled.rs"] +mod unsettled;