brain/src/dev/rust/testing.md

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
```