I’m writing a conformance test in the form of rust integration tests which reads some data from a file (four fields per test case) and calls into the public API of the lib crate and compares the result.
Now, the problem is that I’m checking all the test case from my source data file in one
#[test] function, which results in failing the test on the very first test case failure. I want to simulate a
#[test] fn situation for each single test case, so we can start improving the number of failures procedurally, instead of having to fix the failing test case that’s ordered first.
I have considered using a macro, but since the data file needs some more-than-obvious text processing, it doesn’t look like a suitable solution.
I have searched many of the resources online and couldn’t find any documentation on the internals of rust’s test platform (have not digged into rust source code, yet, though), and couldn’t find anything helpful.
So, is it possible at all? If not, is there any specific reason for it, or just lack of public interest?