Meaning of --test-threads

Would using cargo test -- --test-threads 1 mean that any tests that use multithreading internally will only get one thread, or, does this truly mean that one test gets run at a time?

I have split your question off the 5-year old thread that you posted in.

It means that only one test runs at the time. The tests are free to spawn their own threads if they want to.

2 Likes

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.