Registry / testing / nu-test-support

nu-test-support

JSON →
library0.113.1rscratesunverified

Provides support utilities for writing tests for the Nushell project.

# Cargo.toml [dependencies] nu-test-support = "0.113.1"
INSTALL
IMPORT
SIG · NU-TEST-SUPPORT
N
nu-test-support
testingrustv0.113.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

nu
use nu_test_support::nu;

Runs a Nushell command in a test and checks its output.

use nu_test_support::nu; #[test] fn test_example() { let actual = nu!("echo hello"); assert_eq!(actual.out, "hello"); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.113.1latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
nu-test-support — cargo add nu-test-support · libregistry