-
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
panic=abort testing / subprocess testing #67650
Comments
cc @tmandry I would like to suggest that we change the flag to something like It's also currently a CLI flag but I would hope that we could also make this a per-test decision in panic=unwind binaries (with an attribute on the tests); panic=abort binaries would unconditionally apply it to all tests I guess. It'd also be good to write up some docs on how to use this feature. |
I don't have any problem with generalizing this feature. Using A related (but separate) test attribute is disallowing certain tests from being run in parallel with others. This request has come up in Fuchsia before. I believe the test harness already does this with benchmark tests. |
This would also allow better output capturing (#42474). |
Update: Fuchsia has been using this feature for months now. There is one outstanding issue: #68936. We should think about stabilizing an MVP of this feature, which is that tests work automatically when |
I would be on board with this change. I guess send a stabilization PR? |
cc #73509. There's an issue with It looks like for normal benchmark mode ( |
I come to an interesting problem about abort too, https://stackoverflow.com/questions/66750987/how-to-handle-abort-in-test-unit. Could we have a |
nextest seems to use separate processes for each test and (usually) can be used as a drop-in replacement for |
It looks like there are two main issues blocking stabilization for
Once we solve these two outstanding issues, it seems like we'd be ready to stabilize this. Are there any other issues I'm missing? |
This is the tracking issue for
-Zpanic-abort-tests
and related functionality.Specifically, this flag switches the default test strategy of (loosely) a thread per test to a process per test, and implements the associated functionality of collecting process failures and treating that as passing/failing the test. It also includes a currently unstable option in test binaries,
--force-run-in-process
.This was originally added in #64158 and Cargo support landed in rust-lang/cargo#7460.
The text was updated successfully, but these errors were encountered: