Running tests
The same commands run in CI:
cargo fmt --all -- --check
cargo check --workspace --all-targets
cargo clippy --workspace --all-targets -- -D warnings
cargo test --workspace
All tests run without a display, a network or a language-server installation. Language-service tests use ide-fake-lsp, a deterministic server built from crates/ide-languages/src/bin/fake_lsp.rs.
Optional tests
# Against a real rust-analyzer (must be on PATH).
cargo test -p ide-core --test session -- --ignored real_rust_analyzer
Licences and advisories
cargo install --locked cargo-deny
cargo deny check
See the testing strategy for what each suite covers.