Take Tests Beyond the Elixir Base
Testing is a broad topic and a controversial one. The Elixir community has so far shown pretty basic tastes as far as testing tools go. In this section, we’ll look at a couple of interesting places where Elixir programmers are using more cutting-edge techniques for testing a functional core.
The first idea, code coverage, is that you should understand what’s tested and what’s not. Elixir has built-in tools to help you do so.
The second is that you can use tools to let your system generate many different test inputs automatically and test those inputs against known properties of your code. The technique, called property-based testing, has been around for a while but is picking up momentum in the Elixir community. ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access