Repository navigation
Conversation
Move 29 top-level integration test files into one `it` executable per crate (automation, eval, formats, nodes) or the existing one (engine, ui-egui), cutting the test executables of these crates from 42 to 16 and their total size by 245.5 MiB without removing or weakening any test. Kept standalone on purpose: engine `session` (hostile-input sweep command in AGENTS.md), ui-egui `snapshot`, `language_switching` (process-global locale) and `resize` (global Rayon pool wait), render's single `view_settings`.
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
|
Claiming the |
Consolidates stateless integration test files into a single
tests/it/main.rsbinary per crate across 6 crates, reducing link overhead andtarget/debug/depsartifact size without removing or weakening any tests:crates/formats: moved 14 top-level integration tests into a newtests/it/main.rscrates/nodes: moved 6 integration tests into a newtests/it/main.rscrates/eval: moved 5 integration tests into a newtests/it/main.rscrates/automation: moved 3 integration tests into a newtests/it/main.rscrates/engine: movedpackage_resources.rsinto the existingtests/it/main.rs(keptsessionas its own binary: it is the hostile-input sweep target named inAGENTS.md)crates/ui-egui: movedflatpak_updates.rsinto the existingtests/it/main.rs(keptsnapshot,language_switchingandresizestandalone, as documented indocs/testing-ci.md)The only source edits are the four
include_bytes!/include_str!paths that gain one../level; every other moved file is byte-for-byte unchanged. Documentation links indocs/atomic-parity-improvements.md,docs/parity-fixes.mdanddocs/testing-ci.mdfollow the moves.Local Windows Benchmark (
CARGO_INCREMENTAL=0,-j 4)Scoped to
-p materialcraft-formats -p materialcraft-nodes -p materialcraft-eval -p materialcraft-automation -p materialcraft-engine -p materialcraft-ui-egui:.exebinaries (target/debug/deps).exesizecargo test --no-run, dependencies warm)What ran / What did not run
Ran:
cargo test --no-run -q -j 4on all 6 crates (exit 0, 16 test.exes)cargo test -q -j 4on all 6 crates, three times after the change: 1,548 passed, 0 failed, 71 ignored in every runcargo clippy --no-deps -q -j 4 <the 6 crates> --all-targets -- -D warnings(exit 0)cargo fmt --all -- --check(exit 0)Did not run:
cargo clippywithout--no-depsand the workspace crates outside the six aboveNot a controlled benchmark: the
ui-eguitests dominate the test run wall-clock and vary with machine load: the same tree measured 166.81 s before and 221.73 s / 259.50 s / 181.62 s after. The test run wall-clock is therefore not claimed as a gain; only the binary count, the size, the warm-rebuild time and the test parity are.Summary by CodeRabbit