
Testing
Table Driven Tests in Rust With Plain Loops and Rstest
Run one test body over many cases. A plain loop works, and rstest gives each case its own name in the output. See both, the failure output and how to keep cases readable.
2 min read
Tag
1 post

Run one test body over many cases. A plain loop works, and rstest gives each case its own name in the output. See both, the failure output and how to keep cases readable.