-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Description
I was trying to adapt test-each-file to my https://github.com/oxibus/can-dbc-pest/tree/main/tests code, which uses large external git repositories with lots of files. My tests are only interested in one extension - .dbc, and with the current set up I have to filter for my extension inside the test function. The test is still generated for each irrelevant file recursively, making the output less useful. A side problem this solves is it ignores duplicates more often, e.g. README files.
Proposal
- MVP: Support globs like
"./tests/fixtures/**/*.dbc"- using globset (regex based, possibly faster) or glob (more established?) crate - Optional: Support exclusions, e.g.
"/foobar/"to avoid certain subdirs or filenames. I think globset can help here. This could actually work the same way as.gitignorefiles - i.e. multiple strings passed to thetest_each_path!macro, where if the line begins with the!it will function as exclusion, whereas everything else includes it
Thx for the great crate!
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels