-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
with arguments can execute only one test
#30422
Comments
I'm not sure if it accepted multiple arguments in the past, but the test binary says (run |
I would be okay with accepting multiple FILTER arguments, running a test if its name contains any of the filter strings. |
Shouldn't this issue be moved to rust-lang/cargo? |
Ah ok. |
note that
and
which really make one (one like myself) believe you can run multiple tests. perhaps the docs should be changed in cargo to match the status quo, until the status quo changes (this issue). |
Maybe a test binary can by default re-start itself with one less argument (like in |
It's a little mind-boggling this is still the status quo. I'm curious what people do in order to run specific tests. Personally I've resorted to: while read t; do cargo +nightly test "$t"; done < <(echo 'fix::fix_overlapping
fix::local_paths
fix::prepare_for_2018
fix::specify_rustflags') So.. how can this be fixed? May I ask for some mentoring instructions from whomever takes care of libtest (or more generally libs)? |
Another version I've been using: while read t; do cargo +nightly test "$t"; if [ $? != 0 ]; then echo "$t" >> still_failing.txt; fi; done < failures.txt Whom can I reach out to for help/guidelines on how to fix this? |
@dwijnand I've been using something very similar myself, almost exactly the same. However, it becomes more of a pain when trying to test multi-threaded code (e.g. there is a segfault and you need to find a subset of tests that makes it fail), then you have to use test names like |
Yeah more recently I've been adding my initials to the name of the tests I want to run. I'm still happy to work on this, if someone has any free mentoring bandwidth! 🙂 |
Expecting for it also to execute "test_bad_config" tests.
Maybe previously it was working.
The text was updated successfully, but these errors were encountered: