Some docs tests are very slow #1097
Labels
- Developer -
Torrust Improvement Experience
Documentation
Improves Instructions, Guides, and Notices
High Priority
Focus Required
Optimization
Make it Faster
Regression
It dose not work anymore
Some doc tests are very slow now.
cargo test --doc
These are the ones that take longer:
It can even crash your computer if you don't have enough memory. You can run them with:
cargo test -- --test-threads=1
It would be even slower, but you can execute them.
We have to find out why they are so slow now.
I guess the problem is:
For example, in this test:
We need to compile the main
torrust_tracker
package. FOr this particular case we can extract the functionality to a new package. In fact, it's duplicated. THe comment for the duplication:But in other cases, we can also do the same. If, for some reason, we cannot do it, I would not compile the example for these slow cases.
cc @mario-nt @da2ce7
The text was updated successfully, but these errors were encountered: