Uh oh!
There was an error while loading. Please reload this page.
Add option to run all tests - #53527
Conversation
rust-highfive
commented
Aug 20, 2018
(rust_highfive has picked a reviewer for you, use r? to override) |
Emerentius
commented
Aug 20, 2018
I don't know if "--all" is such a good name when we also have flags for "--tests" and "--benches", but I'm pulling blank on alternatives. I'm thinking it should be ok because the most common usage would be |
Mark-Simulacrum
left a comment
There was a problem hiding this comment.
A few minor nits, but otherwise this looks good.
There was a problem hiding this comment.
I wonder if it makes sense to error here if we've been passed both; what do you think?
There was a problem hiding this comment.
Hmm, maybe. It's often better for humans but worse for automated tools. It's also the more conservative approach that we can always relax later so I'm going for it.
There was a problem hiding this comment.
assert_eq and needless inner parentheses
There was a problem hiding this comment.
No need for this panic, we can probably just unwrap?
There was a problem hiding this comment.
Yeah. Also, I think this is an error message for a buggy test, not a buggy parse_opts.
Mark-Simulacrum
commented
Aug 20, 2018
@rust-lang/libs - as an insta-stable change asking for FCP (I don't think I can start it). Cc @rust-lang/dev-tools, not sure if this is under your purview... |
SimonSapin
commented
Aug 20, 2018
libtest is semi-private / permanently unstable (except possibly for |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
same behaviour, just shorter
add --all flag to libtest that runs ignored and not ignored tests
Manishearth
commented
Aug 20, 2018
@djrenren on devtools is working on custom test frameworks and probably should have a say on this |
djrenren
commented
Aug 20, 2018
This looks really helpful. Two nits:
|
Emerentius
commented
Aug 20, 2018
I associate
What does that mean in this context? |
djrenren
commented
Aug 20, 2018
Presumably ignored tests are ignored for a reason. You're explicitly going against the intentions of the author so to me it seems worth of a
Ah @Mark-Simulacrum mentioned making this an insta-stable change rather than starting as nightly-only then stabilizing later. |
If the author didn't want it to be run ever it would be deleted, commented out or not marked There's an unstable options flag that supposedly only allows the nightly compiler to use certain flags, but it seems like it really just enforces passing |
SimonSapin
commented
Aug 21, 2018
It isn’t great that the subtly different commands |
I was thinking something like |
nrc
commented
Aug 22, 2018
Seems like a nice thing to have from my perspective. I agree |
|
Emerentius
commented
Aug 26, 2018
What's the procedure for moving forward? I can't think think of any better flag names than the ones I've proposed so far. |
Mark-Simulacrum
commented
Aug 26, 2018
I'm going to reassign to r? @nrc since I think the dev tools team is where the decision needs to come from at this point |
bors
commented
Sep 11, 2018
⌛ Testing commit f6f3228 with merge e6ec19172a3119598e81f83d9f9a962f78c92c06... |
bors
commented
Sep 11, 2018
💔 Test failed - status-appveyor |
kennytm
commented
Sep 11, 2018
This has broken a dependency |
Emerentius
commented
Sep 11, 2018
@kennytm So that's an external crate that calls into rustc internals? I'm a bit confused on what I should do now. |
Mark-Simulacrum
commented
Sep 11, 2018
You'll probably want to just retry the build in a few days at which point this should land since we don't require clippy to pass normally, just before and during release week. Once this lands compiletest on crates.io can be updated and finally clippy update can land (or just Cargo.lock, perhaps). |
kennytm
commented
Sep 15, 2018
@bors retry |
bors
commented
Sep 15, 2018
Add option to run all tests This adds the "--include-ignored" flag to libtest, which allows running ignored and unignored tests in one go. Closes#50363
bors
commented
Sep 15, 2018
☀️ Test successful - status-appveyor, status-travis |
rust-highfive
commented
Sep 15, 2018
Tested on commit rust-lang/rust@9f53c87. Direct link to PR: <rust-lang/rust#53527> 💔 clippy-driver on windows: test-pass → test-fail (cc @Manishearth@llogiq@mcarton@oli-obk, @rust-lang/infra). 💔 clippy-driver on linux: test-pass → test-fail (cc @Manishearth@llogiq@mcarton@oli-obk, @rust-lang/infra).
In the interest of saving time, and breaking as little as possible, I'll add a EDIT: oh we don't own |
So I think we should try to do this without breaking |
Emerentius
commented
Sep 26, 2018
@eddyb Have the waters calmed enough that this can be merged again? Should I open a new PR? |
eddyb
commented
Sep 28, 2018
@Emerentius Yes, sorry to delay this and keep you waiting! RC1 went out about a week ago. |
This adds the "--include-ignored" flag to libtest, which allows running ignored and unignored tests in one go.
Closes#50363