nushell/crates/nu-plugin-test-support
Devyn Cairns efe1c99a3b
Fix #12280: replace difference crate with similar (#12282)
Fixes #12280.

# Description

This removes the dependency on the `difference` crate, which is
unmaintained, for `nu-plugin-test-support`. The `similar` crate
(Apache-2.0) is used instead, which is a bit larger and more complex,
but still suitable for a dev dep for tests. Also switched to use
`crossterm` for colors, since `similar` doesn't come with any terminal
pretty printing functionality.

# User-Facing Changes

None - output should be identical.

# Tests + Formatting
- 🟢 `toolkit fmt`
- 🟢 `toolkit clippy`
- 🟢 `toolkit test`
- 🟢 `toolkit test stdlib`
2024-03-25 21:13:12 -05:00
..
src Fix #12280: replace difference crate with similar (#12282) 2024-03-25 21:13:12 -05:00
tests Add test support crate for plugin developers (#12259) 2024-03-23 13:29:54 -05:00
Cargo.toml Fix #12280: replace difference crate with similar (#12282) 2024-03-25 21:13:12 -05:00
LICENSE Add test support crate for plugin developers (#12259) 2024-03-23 13:29:54 -05:00
README.md Add test support crate for plugin developers (#12259) 2024-03-23 13:29:54 -05:00

nu-plugin-test-support

This crate provides helpers for running tests on plugin commands, and is intended to be included in the dev-dependencies of plugin crates for testing.