You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is it possible to generate a test-case per file in a directory? I'm working on an image generating program, and we have test images and it would be convenient to be able to say something like:
#[test_resources("images/*")]fnimage_test(path:&Path){// image test code}
This is possible with test-generator but it's less actively maintained.
The text was updated successfully, but these errors were encountered:
This behavior is unfortunately not supported in test_case.
Initial idea for this crate was to make everything explicit so that onlooker can understand how function behaves from get-go - other options were not as important.
That being said, we've considered adding "iterables" at some point. No concrete design though. At this moment all I can say is that this is not planned for initial 2.0 release but I'm gonna add it to roadmap.
This would be really useful. Right now I'm using glob! from Insta which works great, but doesn't generate a new test for each file. That means that if one file fails then the single test method fails and it's not obvious which is the reason.
Is it possible to generate a test-case per file in a directory? I'm working on an image generating program, and we have test images and it would be convenient to be able to say something like:
This is possible with test-generator but it's less actively maintained.
The text was updated successfully, but these errors were encountered: