Running doc tests are slow due to being always being recompiled #2944
Open
Description
Originally spawned by an issue to rust-skeptic which has the same problem.
Testing my combine library which has 44 doc tests and 36 normal tests takes ~26 seconds with ~22 of those being spent in doc tests. From what I can tell this is because cargo recompiles these tests every time cargo test
is run in addition to each test being compiled individually.
I am thinking this is for a good reason since it makes sure two doc tests cannot conflict with each other but it would be nice if it could be improved.
Metadata
Assignees
Labels
Type
Projects
Status
No status