tree: cd424dd8e24aed342b8b80ef240d8f24d09381a0 [search]
  1. .github/
  2. src/
  3. xtask/
  4. .gitignore
  5. Cargo.toml
  6. CHANGELOG.md
  7. LICENSE-APACHE
  8. LICENSE-MIT
  9. README.md
  10. rustfmt.toml
src/tools/rust-analyzer/lib/expect-test/README.md

expect-test

Docs

Minimalistic snapshot testing for Rust.

Updating a failing test:

https://user-images.githubusercontent.com/1711539/120119633-73b3f100-c1a1-11eb-91be-4c61a23e7060.mp4

Adding a new test: Just leave a blank expect![[""]] and update it:

expect-fresh

Checkout the docs for more: https://docs.rs/expect-test.