How to do unit test coverage in Erlang

code-coverage, erlang, eunit, testing

Solution

If you're `rebar` just add:

{cover_enabled, true}.

to your `rebar.config`

Problem

When using Python I do test code coverage with tools like python-coverage and especially for django the package djaango-nose, I'm looking for an equivalent in Erlang. I already do tests with eunit and generate my reports with surefire but I didn't find a way to do code coverage, does anyone know tools or methodology to do this ?

Original source