Dynamic test cases at run time

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

surdeus

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