Open
Description
Proposal
I'd like to filter my tests based on a more complex pattern than just substring.
The current behavior of rust tests is that when a pattern is specified, then only tests that contain that pattern as a substring are run.
cargo test -- foo
will run only tests that contain the substring foo
.
I propose to amend this to allow for a regex syntax.
cargo test -- /regex/
which will run tests that match the regex regex
.
This is "technically" a breaking change because it's possible that people are already using filters with slashes in them, but since test names can't contain slashes these invocations would always be running 0 tests.
Misc
- Let me know if this should be an RFC. The feature seems pretty small, but I'd understand if it should be more speced out.
- I'd be happy to implement this if people are interested.
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
No status