4 ms·
I still don't understand why more languages don't have doc tests.
by troupo 3y ago
I still don't understand why more languages don't have doc tests.
- mcintyre1994 3y agoI think there's two main things: - Elixir's scripting makes it super easy to write a one-liner that tests a function, that'd be a lot more verbose in many other languages - You need the docs tool and unit tests tools to 'speak the same language' to make it work, and for whatever reason Elixir devs don't seem as intent on reinventing tools like those as some other languages