-
-
Notifications
You must be signed in to change notification settings - Fork 29
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
Allow forward of cargo test
arguments
#15
Comments
There's not an option for that yet, though I plan to soon add a way to pass options to I thought probably
Though, also: I wonder if there's a way for you to make this work safely in your tree without requiring that argument, so that people don't need to remember to add it? I guess you could take a mutex from each test, though that might get annoying... Anyhow, it's a very reasonable option to add here. |
my tests take a long time to run and the CI and I think the dev guide mentions it as well. I did consider the mutex when I implemented but I felt that it just made it more annoying to write tests . 👍 for the cargo test argument passing implementation. |
I've never used it but https://crates.io/crates/rusty-fork might help?
|
Maybe, but possibly not, it's a tool using ptrace so I'd need to check ptraces behaviour inside forks. Also it invokes cargo so not sure how people will feel about nproc number of cargo build processes being launched continuously as it goes through all the tests 😅. I'll add it to my backlog to check out though |
So for my project I have to run with
cargo test -- --test-threads 1
as the project uses unix APIs that aren't thread-safe within a process so running the integration tests in parallel causes failures. This means my unmutated run fails and I can't trycargo-mutants
on my project. Not sure if there's a way to pass this that I've missed, but if there's not it feels like a useful thing to add (and I'd be willing to help 😄 )The text was updated successfully, but these errors were encountered: