Feature request: copy-pasteable test filters #2114
gibfahn
started this conversation in
Feature requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Motivation
Today I have to remember how to pass three different kinds of filters to
cargo test
orcargo nextest run
. I end up having to look these up every time.Nextest has made a lot of things easier, one of which being that it's really easy to see what each test is called, and where it is in the hierarchy, as they all get listed out as they run.
A common debugging flow for me is:
cargo nextest run --run-ignored=all
Proposal
If I have a line in
cargo nextest run
like:I want to be able to do something like:
to run that test. Instead today I have to do (I think this is right):
Alternatives
I don't understand enough about how things work today and what would be a breaking change to know the best way to do this. Maybe the easiest way would be to change the format that the tests are printed in today? e.g. maybe something like:
and then
cargo nextest run
understands that a leading::
means to use this filtering method or something.Additional context
No response
Beta Was this translation helpful? Give feedback.
All reactions