22 lines
287 B
Markdown
22 lines
287 B
Markdown
# Testing
|
|
|
|
## `Cargo test` and `println!`
|
|
|
|
To see stdout when using cargo run (kudos CobaltVelvet)
|
|
|
|
```shell
|
|
cargo test -- --nocapture
|
|
```
|
|
|
|
## Run all the tests, even if one of them fail
|
|
|
|
```shell
|
|
cargo test -- --no-fail-fast
|
|
```
|
|
|
|
## Cleanup test cache
|
|
|
|
```shell
|
|
go clean -testcache
|
|
```
|