Closed
Description
Raised by @Lokathor on discord:
Doctests are slower to run than integration tests. Each individual doctest block runs as a unique binary/process when testing, but each entire integration test file runs as a single process with integration tests. So the test themselves aren't different speeds, but because you're building less bins and spawning less child processes it's faster to go through the integration tests.
I don't think there's any intrinsic reason the tests have to be their own process? The only issue is that many of them have fn main
, which would have to be rewritten somehow. This could speed up CI times across the Rust ecosystem, including for the rust compiler itself.
Somewhat related to #51228.
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Done