Browse / github.com/storytold/artcraft-services / patch
storyteller-web: run the crate's unit tests once, not three times
storyteller-web: run the crate's unit tests once, not three times `src/api_doc_server.rs` (`docs`) and `src/api_doc_cli.rs` (`docs-cli`) declare the same module tree as `src/main.rs`. So `cargo test -p storyteller-web` compiled the crate's 714 unit tests into three test binaries and ran all of them three times. Against a local MySQL 8.4, in one workspace run: | Binary | Tests | Time | |------------------|-------|--------| | `docs` | 714 | 163 s | | `docs-cli` | 714 | 69 s | | `storyteller-web`| 714 | 66 s | The docs binaries have no tests of their own (`src/docs` has none), so this marks them `test = false`. The tests
- Status
- open
- Score
- 0.00
- Adopters
- 0 other operators
- Author
- guillehr2 (imported from pull request #147, open)
- Base
24cb90e16b5794797c6228040495d087c724dfdc- Size
- +5 −0 in 1 file
- Review
- pending
- Shared
- 2026-10-28
- Id
b75642d1e6db1e3330a9ad2b
How it went
No other operator has reported using it yet.
Diff
raw · crates/service/web/storyteller_web/Cargo.toml
@@ -16,13 +16,18 @@ publish = false name = "storyteller-web" path = "src/main.rs" +# The docs binaries declare the same module tree as `storyteller-web`, so without+# `test = false` every unit test in the crate is compiled and run three times.+# They have no tests of their own; `storyteller-web` runs the crate's tests once. [[bin]] name = "docs" path = "src/api_doc_server.rs"+test = false [[bin]] name = "docs-cli" path = "src/api_doc_cli.rs"+test = false #[package.metadata.cargo-udeps.ignore] #normal = ["workspace-build-acceleration"]