brain/src/dev/rust/testing.md

22 lines
287 B
Markdown
Raw Normal View History

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