#doctests — Public Fediverse posts
Live and recent posts from across the Fediverse tagged #doctests, aggregated by home.social.
-
🎥 New Video Online – Rust in Paris 2025 🦀
At the latest edition of Rust in Paris, Guillaume Gomez @imperio explained how doctests work — from keeping code examples up-to-date to enabling tests you can’t easily write with unit tests.
👉 Watch the full talk here: https://youtu.be/NmgNi6kFXZI
Huge thanks to Guillaume for his contributions to Rust tooling and for showing us the hidden power of doctests 🙌
#RustLang #RustInParis #RustProgramming #OpenSource #RustCommunity #Doctests #RustTooling
-
I just realized that #Django intentionally does not document how to use #doctests (they say so in the forums¹).
And I’m annoyed right now.
positive: they are wrong about doctests not being maintained in #Python: python 3.13 brings colored output for doctests:
https://docs.python.org/3/whatsnew/3.13.html#whatsnew313-doctest
I consider doctests to be one of the most elegant ways to test beautifully self-contained functions with easy to understand input.
¹ https://forum.djangoproject.com/t/testing-django-with-doctest/25550
EDIT: please read the thread! *happy*