Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cargo test: allow to specify tests by filename and line #6478

Closed
da-x opened this issue Dec 22, 2018 · 2 comments
Closed

cargo test: allow to specify tests by filename and line #6478

da-x opened this issue Dec 22, 2018 · 2 comments
Labels
C-feature-request Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted` Command-test

Comments

@da-x
Copy link
Member

da-x commented Dec 22, 2018

If it was possible to specify tests to run by filename and line of the test function, then editors would not need to work hard in order to invoke specific tests from within the editor. Currently reliance on heuristics or RLS features is needed for this.

@da-x da-x added the C-feature-request Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted` label Dec 22, 2018
@dwijnand
Copy link
Member

I think this might need to be opened against the rust-lang/rust repo, seeing as cargo just delegates to its libtest behaviour for test section (such as rust-lang/rust#30422).

@alexcrichton
Copy link
Member

Indeed this'd need to be a feature request of libtest in upstream rust-lang/rust, so I'm going to close in favor of an issue there

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-feature-request Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted` Command-test
Projects
None yet
Development

No branches or pull requests

3 participants