File tree Expand file tree Collapse file tree 2 files changed +29
-0
lines changed Expand file tree Collapse file tree 2 files changed +29
-0
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,15 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
7
7
<!-- next-header -->
8
8
## [ Unreleased] - ReleaseDate
9
9
10
+ ### Breaking Change
11
+
12
+ - ` TestCases::insert_var ` / ` TestCases::extend_var ` no longer overwrite but extend the vr
13
+
14
+ ### Features
15
+
16
+ - Allow inserting multiple values for the same variable, to handle multiple forms of the same value (like UNC paths vs regular paths)
17
+ - Add ` TestCases::clear_var `
18
+
10
19
## [ 0.14.21] - 2024-02-08
11
20
12
21
### Internal
Original file line number Diff line number Diff line change @@ -7,6 +7,26 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
7
7
<!-- next-header -->
8
8
## [ Unreleased] - ReleaseDate
9
9
10
+ ### Breaking Change
11
+
12
+ - ` _path ` assertions have been replaced by regular assertions accepting and updating ` Data::read_from ` / `file![ ]
13
+ - Renamed ` Data::try_coerce ` to ` Data::coerce_to `
14
+ - Normalization types and ` DataFormat ` were moved to the ` data ` mod
15
+
16
+ ### Features
17
+
18
+ - ` str![] ` macro for inline snapshots
19
+ - ` coerce_to ` for specifying the structure of the snapshot
20
+ - ` file!["<path-relative-to-rs>"] ` macro for test-relative snapshots
21
+ - ` _ ` placeholder can be used for auto-generated file names
22
+ - ` : Json ` (see ` DataFormat ` ) type ascriptions for specifying the structure of the snapshot
23
+ - ` ToDebug ` extension trait for easier snapshot testing of debug output
24
+ - Help catch swapped parameters to assertions by panicking if the "actual" has a source to update but not the "expected"
25
+ - Allow inserting multiple values for the same variable, to handle multiple forms of the same value (like UNC paths vs regular paths)
26
+ - ` path::current_rs!() ` macro for an absolute path of ` std::fs::file! `
27
+ - ` path::current_dir!() ` macro to get the absolute path to ` std::fs::file! `
28
+ - ` path::cargo_rustc_current_dir() ` macro as a polyfill for the unstable ` CARGO_RUSTC_CURRENT_DIR `
29
+
10
30
## [ 0.4.17] - 2024-02-08
11
31
12
32
## [ 0.4.16] - 2024-01-12
You can’t perform that action at this time.
0 commit comments