Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upTest name filtering does not allow disambiguating tests with overlapping names #46408
Comments
This comment has been minimized.
This comment has been minimized.
|
Try |
This comment has been minimized.
This comment has been minimized.
|
Is that documented anywhere outside of Also, #[test]
fn foo_works() { /* ... */ }
#[test]
fn foo_works_complexly() { /* ... */ }
#[test]
fn bar_works() { /* ... */ } |
This comment has been minimized.
This comment has been minimized.
|
You can also |
This comment has been minimized.
This comment has been minimized.
|
Both globbing and multiple filters seem like good solutions! |
This comment has been minimized.
This comment has been minimized.
|
I might take a stab at implementing this. A couple of questions though:
Probably cc @rust-lang/tools and maybe @sfackler judging from #38181. |
jonhoo
added a commit
to jonhoo/rust
that referenced
this issue
Dec 1, 2017
jonhoo
referenced this issue
Dec 1, 2017
Closed
libtest: add glob support to test name filters #46417
jonhoo
added a commit
to jonhoo/rust
that referenced
this issue
Dec 1, 2017
jonhoo
added a commit
to jonhoo/rust
that referenced
this issue
Dec 1, 2017
This comment has been minimized.
This comment has been minimized.
pietroalbini
added
C-enhancement
A-libtest
labels
Jan 23, 2018
This comment has been minimized.
This comment has been minimized.
|
Triage: no changes that I'm aware of. |
jonhoo commentedNov 30, 2017
•
edited
Consider the following two tests:
There is currently no way to run only
it_works, and notit_works_complexly:In Go, the filter is a regular expression, so one can use
go test 'it_works$', but this not work in Rust (because the test harness presumably just uses simple substring matching):