expect-test
Minimalistic snapshot testing library
1.5.1
35M downloads/mo
#1532 most downloaded on crates.io
rust-analyzer/expect-test
What this package is like to depend on
Last release 2 years ago
no release in 18 months
Release timing varies
gaps range from 2 weeks to 13 months
Most releases are documented
notes for 9 of 13 stable releases
Nothing withdrawn
no release was ever pulled
6 years old
14 releases · first in 2020
0 releases in the last 12 months
see the full history below
Release timeline
14 releases · Aug 2020 to Dec 2024Releases
latest 14-
1.5.121 Dec 2024 -
1.5.002 Apr 2024 -
1.4.128 Feb 2023Release notes
Open source →- Use foreground colors instead of background colors to highlight diffs ([#36])
-
1.4.019 Jul 2022Release notes
Open source →- Prefer
CARGO_WORKSPACE_DIRif set, use heuristic as fallback to find cargo workspace ([#34])
- Prefer
-
1.3.025 May 2022Release notes
Open source →- Add
data()getter to Expect ([#31]) - Support single delimiter version of
expect - Allow users to rebind
expect!([#26])
- Add
-
1.2.225 Dec 2021Release notes
Open source →25: make it a bit more production ready r=matklad a=matklad
Co-authored-by: Aleksey Kladov [email protected]
Release notes
Open source →- Parse string literals to find their length ([#23])
- Do not use
fs::canonicalize.
-
1.2.130 Nov 2021Release notes
Open source →17: Respect user provided absolute path r=matklad a=mvtec-bergdolll
When the environment variable CARGO_MANIFEST_DIR is not present as is the default when opening a workspace project in vs code and running the tests.
expect-testpanics.The problem can be reproduced with this minimal project https://github.com/mvtec-bergdolll/expect-test-repro-proj/tree/main. Open it in vs code and run the integration tests. They panic. However running them from the shell does not panic. That's unfortunate.
As user trying to debug this I was confused why it failed even when providing an absolute path.
This change includes:
- Do not query CARGO_MANIFEST_DIR if the user already provided an absolute path when calculating an absolute path
- Better error message when CARGO_MANIFEST_DIR is not present
I'm not sure how to easily test this so I've not added automated testing.
Co-authored-by: Lukas Bergdoll [email protected]
-
1.2.0-pre.109 Oct 2021 pre-releaseRelease notes
Open source →16: allow disabling automatic indentation on update r=matklad a=matklad
closes #10
bors r+
Co-authored-by: Aleksey Kladov [email protected]
-
1.1.001 Jan 2021Release notes
Open source →11: Use dissimilar for diffs instead of difference r=Jesse-Bakker a=Jesse-Bakker
As discussed with @matklad in rust-lang/rust-analyzer#7106.
Used background instead of foreground colours because I think the diff boundaries are clearer, but I'm not married to that change ;)
Co-authored-by: Jesse Bakker [email protected]
-
1.0.207 Dec 2020Release notes
Open source → -
1.0.131 Aug 2020Nothing published for this version
-
1.0.028 Aug 2020Nothing published for this version
-
0.1.021 Aug 2020Nothing published for this version
-
0.0.120 Aug 2020Nothing published for this version