Code coverage raport generator.
Add coverlet
to your list of dependencies and set it as test_coverage
tool in mix.exs
:
defmodule MyApp.MixProject do
use Mix.Project
def project do
[
# ...
test_coverage: [tool: Coverlet]
]
end
def deps do
[
{:coverlet, "~> 0.1.0", only: [:test]}
]
end
end
Documentation can be generated with ExDoc and published on HexDocs. Once published, the docs can be found at https://hexdocs.pm/coverlet.