tealdeer-rs / tealdeer

A very fast implementation of tldr in Rust.
https://tealdeer-rs.github.io/tealdeer/
Apache License 2.0
4.48k stars 129 forks source link

Reduce `--update` invocations in tests #390

Open niklasmohrin opened 1 week ago

niklasmohrin commented 1 week ago

We have a lot of tests that initially run tldr --update. This is unnecessary as we could just place the needed pages in the temporary cache directory ourselves. This would a) speed up the tests, because they don't need to download the whole archive from the internet, b) remove unneeded internet traffic and c) make the tests reproducible and runnable in offline environments (like nix builds).

All tests not directly testing the update procedure should be changed.