2
0
Fork 0
mirror of https://github.com/nushell/nushell synced 2025-03-05 15:58:17 +00:00
nushell/crates/nu-command/tests
tomoda ad95e4cc27
Refactor tests (using cococo instead of ^echo) ()
- related PR:  

# Description

Now we can use `nu --testbin cococo` instead of `^echo` to echo messages
to stdout in tests.

But `nu` treats parameters as its own flags when parameter starts with
`-`. So `^echo --foo='bar'` still use `^echo`.

# User-Facing Changes

(none)

# Tests + Formatting

- [x] `cargo fmt --all -- --check` to check standard code formatting
(`cargo fmt --all` applies these changes)
- [x] `cargo clippy --workspace -- -D warnings -D clippy::unwrap_used`
to check that you're using the standard code style
- [x] `cargo test --workspace` to check that all tests pass (on Windows
make sure to [enable developer
mode](https://learn.microsoft.com/en-us/windows/apps/get-started/developer-mode-features-and-debugging))
- [x] `cargo run -- -c "use std testing; testing run-tests --path
crates/nu-std"` to run the tests for the standard library


# After Submitting

(none)
2024-01-05 11:40:56 +08:00
..
commands Refactor tests (using cococo instead of ^echo) () 2024-01-05 11:40:56 +08:00
format_conversions bump rust-toolchain to 1.72.1 () 2023-11-16 15:14:45 -06:00
main.rs Enforce required, optional, and rest positional arguments start with an uppercase and end with a period. () 2023-12-15 14:32:37 +08:00