2019-07-07 19:23:59 +00:00
|
|
|
# Testing
|
|
|
|
|
|
|
|
## `Cargo test` and `println!`
|
|
|
|
|
|
|
|
To see stdout when using cargo run (kudos CobaltVelvet)
|
|
|
|
|
|
|
|
```shell
|
2020-01-11 16:41:55 +00:00
|
|
|
cargo test -- --nocapture
|
|
|
|
```
|
|
|
|
|
|
|
|
## Run all the tests, even if one of them fail
|
|
|
|
|
|
|
|
```shell
|
|
|
|
cargo test -- --no-fail-fast
|
2019-07-07 19:23:59 +00:00
|
|
|
```
|
2021-08-10 16:00:45 +00:00
|
|
|
|
|
|
|
## Cleanup test cache
|
|
|
|
|
|
|
|
```shell
|
|
|
|
go clean -testcache
|
|
|
|
```
|