datatest-stable 0.3.0
github-actions
released this
25 Dec 02:08
·
18 commits
to main
since this release
Added
- Support for embedding data into the test binary via an optional
include-dir
feature. For more information and recommendations for when to use this, see the
readme.
Changed
-
The macro call format has changed to:
datatest_stable::harness! { { test = fn_name, path = &include_dir!("path/to/data"), pattern = r"^.*$" }, // ... }
This is both a nicer format for expressing multiple tests, and a signal to
indicate the other breaking changes in this release. -
Regex patterns now match against the path relative to the include directory, rather
than paths with respect to the crate root. This change was made for uniformity with the
include_dir
implementation. -
On Windows, paths are now universally normalized to use forward slashes. This change
was made to ensure that test names and paths are consistent across platforms.