Some projects use the cargo insta subcommand to curate snapshot tests.
It's getting tedious to build this on my machines. I only ever needed
the cargo subcommand, so that's what this port provides.
The port is straightforward except that I haven't found a way to make
the 'functional' tests pass in offline mode.
cargo subcommand for snapshot testing
Description:
Snapshots tests (also sometimes called approval tests) are tests that
assert values against a reference value (the snapshot). This is similar
to how assert_eq! lets you compare a value against a reference value but
unlike simple string assertions, snapshot tests let you test against
complex values and come with comprehensive tools to review changes.
Maintainer: The OpenBSD ports mailing-list <ports@openbsd.org>
WWW: https://github.com/mitsuhiko/insta/
No comments:
Post a Comment