Exploring Doctests in Erlang

Speaker:
Lukas Larsson


Abstract:

Doctests is something that has existed in Elixir since a long time ago and it was recently added to Erlang as well. This session will go through the new ct_doctests module in Erlang, explaining how to use it, what it can do and the benefits of using it. I’ll also talk about the features in the Erlang version of doctests that Elixir does not have (yet?).

Key Takeaways:

  • The talk aims to inspire you to write tests in documentation as by doing that you get both tests and documentation at the same time!

Target Audience:

  • People writing Erlang libraries that has documentation, which should be the case for all libraries.

Tags:
documentation testing devex