Info
This post is auto-generated from RSS feed The Rust Programming Language Forum - Latest topics. Source: Dynamic test cases at run time
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
🏷️ rust_feed