Closed rjzak closed 5 months ago
First of all you can have something that is quite the same with the following code
#[rstest]
#[case::file_bin__qwerty(include_bytes!("path/to/file.bin"))]
#[case::other_bin__bazfoo(include_bytes!("path/to/other.bin"))]
fn the_test(#[case] input: &[u8]) {
do_something(input);
}
Sadly you cannot label your tests with an unconstrained string like in kotlin because the rust framework show just the test function path and tests name should be valid identities.
Currently, this:
Yields:
It would be nice to have:
Which would yield:
So if there's an error with a specific case, it's easier to see which one failed.