home.social

#doctests — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #doctests, aggregated by home.social.

  1. 🎥 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: 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

  2. 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:

    docs.python.org/3/whatsnew/3.1

    I consider doctests to be one of the most elegant ways to test beautifully self-contained functions with easy to understand input.

    ¹ forum.djangoproject.com/t/test

    EDIT: please read the thread! *happy*

    #programmming