Dynamic test cases at run time

⚓ Rust    📅 2025-07-10    👤 surdeus    👁️ 18      

surdeus

Warning

This post was published 118 days ago. The information described in this article may have changed.

I want to unit test my code with dynamic input from a file.
Each line contains parameters for a test case.
Currently, I just read this file an run the testing of all lines within one single #[test] function.
However, I'd like each line to be a separate test case.
How can I achieve that?

2 posts - 2 participants

Read full topic

🏷️ rust_feed