Skip to content

Releases: nextest-rs/datatest-stable

datatest-stable 0.3.2

29 Dec 01:00
Compare
Choose a tag to compare

Added

  • pattern is now optional in the harness! macro. If not specified, the default pattern is
    r".*" (match all files).

Fixed

  • Restored the ability to use absolute paths as the root argument.

datatest-stable 0.3.1

26 Dec 04:46
Compare
Choose a tag to compare

Fixed

Fixed documentation for include_dir invocations. They must typically be called
via include_dir!("$CARGO_MANIFEST_DIR/path/to/data").

datatest-stable 0.3.0

25 Dec 02:08
Compare
Choose a tag to compare

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.

datatest-stable 0.2.10

08 Dec 22:26
Compare
Choose a tag to compare
  • Internal dependency updates: update libtest-mimic to 0.8.1, and fancy-regex to 0.14.0.
  • Update MSRV to Rust 1.72.

datatest-stable 0.2.9

26 Apr 01:31
Compare
Choose a tag to compare

Added

Previously, the test functions supported were fn(&Path) -> Result<()> and fn(&Utf8Path) -> Result<()>. This release adds additional supported functions:

  • fn(&P, String) -> datatest_stable::Result<()> where P is Path or Utf8Path. If the
    extra String parameter is specified, the contents of the file will be loaded and passed in
    as a string (erroring out if that failed).
  • fn(&P, Vec<u8>) -> datatest_stable::Result<()> where P is Path or Utf8Path. If the
    extra Vec<u8> parameter is specified, the contents of the file will be
    loaded and passed in as a Vec<u8> (erroring out if that failed).

datatest-stable 0.2.8

25 Apr 00:52
Compare
Choose a tag to compare

Fixed

  • Fixed quadratic performance issue with nextest, where datatest-stable would iterate over the
    entire list of files for each test. Thanks @zaneduffield for
    your first contribution!

datatest-stable 0.2.7

21 Apr 23:00
Compare
Choose a tag to compare

Changed

  • Switched to the fancy-regex crate, which allows for matching against regexes with
    lookahead/behind and backreferences. Thanks @webbdays for your
    first contribution!
  • MSRV updated to Rust 1.66.

datatest-stable 0.2.6

09 Apr 19:06
Compare
Choose a tag to compare
  • Update to libtest-mimic 0.7.2, and use the upstream implementation of ExitCode.

datatest-stable 0.2.5

09 Apr 04:18
Compare
Choose a tag to compare
  • Exit main via ExitCode rather than std::process::exit(). This appears to fix coverage on
    Windows.

datatest-stable 0.2.4

09 Apr 00:12
Compare
Choose a tag to compare

This is a periodic maintenance release.

  • Update internal dependency versions, including libtest-mimic to 0.7.0.
  • Update "docs (main)" link to the new location at https://datatest-stable.nexte.st.
  • Update MSRV to Rust 1.65.