-
-
Notifications
You must be signed in to change notification settings - Fork 16
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
Support running doc tests serially #30
Comments
I've just been experimenting with this, and the following seems to work ok (for values of "doesn't seem to fail"). OTOH, I've been trying a few experiments, and so far I think rustdoc tests are maybe run separately enough that the
I've marked the boilerplate bits (everything other than the |
Yup, I've just confirmed this. Between https://quietmisdreavus.net/code/2018/02/23/how-the-doctests-get-made/ and https://github.com/rust-lang/rust/blob/c4e33b51c1a2d5e599b949fa3006467b88df253a/src/librustdoc/doctest.rs#L233 I've managed to confirm that OTOH, I could just use something like https://docs.rs/fslock and make a new attribute that lets you do file-based locking, but that's a notable change that would take me a bit to do and I've got a few other things on my plate at the moment. I might get around to doing this eventually, but if you felt like contributing patches for that it would be appreciated :) |
#43 should solve this. |
This crate is very useful for my use-case (interacting with hardware), but I have quite a few doc tests that can't be run unless serially. Does this crate support running doc tests serially? If not, could that be supported?
The text was updated successfully, but these errors were encountered: