The L10nRegistry was originally written out of tree and then migrated in. When running `./mach rusttests` the unit tests and docs tests correctly run. ``` 0:09.91 Running unittests src/lib.rs (/Users/greg/dev/gecko/obj-ff-release/x86_64-apple-darwin/release/deps/l10nregistry-2922a2fc815d9b72) 0:09.92 running 1 test 0:09.92 test source::tests::calculate_source_pos ... ok 0:09.92 test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s ... 2:22.22 Doc-tests l10nregistry 2:22.37 running 0 tests 2:22.37 test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s ``` However there are also [integration tests for l10nregistry-rs defined in the Cargo.toml](https://searchfox.org/mozilla-central/rev/a64647a2125cf3d334451051491fef6772e8eb57/intl/l10n/rust/l10nregistry-rs/Cargo.toml#60-83). Locally I can run them doing: ``` cd intl/l10n/rust/l10nregistry-rs cargo test --all-features ``` However, these are not running in CI nor with `mach rusttests`. I tried looking a bit at the `rusttests` implementation, but couldn't really make sense of how it all works and actually runs the tests.
Bug 1796194 Comment 0 Edit History
Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.
The [L10nRegistry](https://searchfox.org/mozilla-central/source/intl/l10n/rust/l10nregistry-rs) was originally written out of tree and then migrated in. When running `./mach rusttests` the unit tests and docs tests correctly run. ``` 0:09.91 Running unittests src/lib.rs (/Users/greg/dev/gecko/obj-ff-release/x86_64-apple-darwin/release/deps/l10nregistry-2922a2fc815d9b72) 0:09.92 running 1 test 0:09.92 test source::tests::calculate_source_pos ... ok 0:09.92 test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s ... 2:22.22 Doc-tests l10nregistry 2:22.37 running 0 tests 2:22.37 test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s ``` However there are also [integration tests for l10nregistry-rs defined in the Cargo.toml](https://searchfox.org/mozilla-central/rev/a64647a2125cf3d334451051491fef6772e8eb57/intl/l10n/rust/l10nregistry-rs/Cargo.toml#60-83). Locally I can run them doing: ``` cd intl/l10n/rust/l10nregistry-rs cargo test --all-features ``` However, these are not running in CI nor with `mach rusttests`. I tried looking a bit at the `rusttests` implementation, but couldn't really make sense of how it all works and actually runs the tests.