Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/cargo/test.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,13 @@ $ cargo test
Finished dev [unoptimized + debuginfo] target(s) in 0.89 secs
Running target/debug/deps/blah-d3b32b97275ec472

running 3 tests
running 4 tests
test test_bar ... ok
test test_baz ... ok
test test_foo_bar ... ok
test test_foo ... ok

test result: ok. 3 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out
test result: ok. 4 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out
```

You can also run tests whose name matches a pattern:
Expand Down Expand Up @@ -135,7 +135,7 @@ Corro
```
What actually gets put into `ferris.txt` is this:
```shell
$ cargo test test_foo
$ cargo test test_file && cat ferris.txt
Corro
Ferris
Corro
Expand Down