mirror of
https://github.com/nushell/nushell
synced 2025-01-12 05:09:04 +00:00
fix the std
test commands calls in dev documents (#9535)
related to a comment in https://github.com/nushell/nushell/pull/9500 > `cargo run -- crates/nu-std/tests/run.nu` Not done - doesn't seem to work this is absolutely true because the command in the PR template was obsolete... i've also updated the commands in the `CONTRIBUTING` document of the library 👍 cc/ @fnordpig
This commit is contained in:
parent
39b43d1e4b
commit
ca794f6adb
2 changed files with 3 additions and 3 deletions
2
.github/pull_request_template.md
vendored
2
.github/pull_request_template.md
vendored
|
@ -26,7 +26,7 @@ Make sure you've run and fixed any issues with these commands:
|
||||||
- `cargo fmt --all -- --check` to check standard code formatting (`cargo fmt --all` applies these changes)
|
- `cargo fmt --all -- --check` to check standard code formatting (`cargo fmt --all` applies these changes)
|
||||||
- `cargo clippy --workspace -- -D warnings -D clippy::unwrap_used -A clippy::needless_collect -A clippy::result_large_err` to check that you're using the standard code style
|
- `cargo clippy --workspace -- -D warnings -D clippy::unwrap_used -A clippy::needless_collect -A clippy::result_large_err` to check that you're using the standard code style
|
||||||
- `cargo test --workspace` to check that all tests pass
|
- `cargo test --workspace` to check that all tests pass
|
||||||
- `cargo run -- crates/nu-std/tests/run.nu` to run the tests for the standard library
|
- `cargo run -- -c "use std testing; testing run-tests --path crates/nu-std"` to run the tests for the standard library
|
||||||
|
|
||||||
> **Note**
|
> **Note**
|
||||||
> from `nushell` you can also use the `toolkit` as follows
|
> from `nushell` you can also use the `toolkit` as follows
|
||||||
|
|
|
@ -204,7 +204,7 @@ More design guidelines:
|
||||||
### Useful Commands
|
### Useful Commands
|
||||||
- Run all unit tests for the standard library:
|
- Run all unit tests for the standard library:
|
||||||
```nushell
|
```nushell
|
||||||
cargo run -- -c 'use std; NU_LOG_LEVEL=ERROR std run-tests'
|
cargo run -- -c 'use std testing; testing run-tests --path crates/nu-std'
|
||||||
```
|
```
|
||||||
> **Note**
|
> **Note**
|
||||||
> this uses the debug version of NU interpreter from the same repo, which is
|
> this uses the debug version of NU interpreter from the same repo, which is
|
||||||
|
@ -216,7 +216,7 @@ More design guidelines:
|
||||||
- Run all tests for a specific test module, e.g,
|
- Run all tests for a specific test module, e.g,
|
||||||
`crates/nu-std/tests/test_foo.nu`
|
`crates/nu-std/tests/test_foo.nu`
|
||||||
```nushell
|
```nushell
|
||||||
cargo run -- -c 'use std; NU_LOG_LEVEL=INFO std run-tests --module test_foo'
|
cargo run -- -c 'use std testing; testing run-tests --path crates/nu-std --module test_foo'
|
||||||
```
|
```
|
||||||
- Run a custom command with additional logging (assuming you have instrumented
|
- Run a custom command with additional logging (assuming you have instrumented
|
||||||
the command with `log <level>`, as we recommend.)
|
the command with `log <level>`, as we recommend.)
|
||||||
|
|
Loading…
Reference in a new issue