|
1 | 1 | # Changelog
|
2 | 2 |
|
| 3 | +## [0.3.0] - 2024-12-24 |
| 4 | + |
| 5 | +### Added |
| 6 | + |
| 7 | +- Support for embedding data into the test binary via an optional `include-dir` |
| 8 | + feature. For more information and recommendations for when to use this, see [the |
| 9 | + readme](https://crates.io/crates/datatest-stable). |
| 10 | + |
| 11 | +### Changed |
| 12 | + |
| 13 | +- The macro call format has changed to: |
| 14 | + |
| 15 | + ```rust |
| 16 | + datatest_stable::harness! { |
| 17 | + { test = fn_name, path = &include_dir!("path/to/data"), pattern = r"^.*$" }, |
| 18 | + // ... |
| 19 | + } |
| 20 | + ``` |
| 21 | + |
| 22 | + This is both a nicer format for expressing multiple tests, and a signal to |
| 23 | + indicate the other breaking changes in this release. |
| 24 | + |
| 25 | +- Regex patterns now match against the path relative to the *include directory*, rather |
| 26 | + than paths with respect to the crate root. This change was made for uniformity with the |
| 27 | + `include_dir` implementation. |
| 28 | + |
| 29 | +- On Windows, paths are now universally normalized to use forward slashes. This change |
| 30 | + was made to ensure that test names and paths are consistent across platforms. |
| 31 | + |
3 | 32 | ## [0.2.10] - 2024-12-08
|
4 | 33 |
|
5 | 34 | - Internal dependency updates: update `libtest-mimic` to 0.8.1, and `fancy-regex` to 0.14.0.
|
@@ -114,6 +143,7 @@ There are no functional changes in this release.
|
114 | 143 |
|
115 | 144 | (Version 0.1.0 was yanked because of a metadata issue.)
|
116 | 145 |
|
| 146 | +[0.3.0]: https://github.com/nextest-rs/datatest-stable/releases/tag/datatest-stable-0.3.0 |
117 | 147 | [0.2.10]: https://github.com/nextest-rs/datatest-stable/releases/tag/datatest-stable-0.2.10
|
118 | 148 | [0.2.9]: https://github.com/nextest-rs/datatest-stable/releases/tag/datatest-stable-0.2.9
|
119 | 149 | [0.2.8]: https://github.com/nextest-rs/datatest-stable/releases/tag/datatest-stable-0.2.8
|
|
0 commit comments