cobertura_cover alternatives and similar packages
Based on the "Testing" category.
Alternatively, view cobertura_cover alternatives based on common mentions on social networks and blogs.
-
bypass
Bypass provides a quick way to create a custom plug that can be put in place instead of an actual HTTP server to return prebaked responses to client requests. -
mix_test_interactive
Interactive watch mode for Elixir's mix test. https://hexdocs.pm/mix_test_interactive/ -
mecks_unit
A simple Elixir package to elegantly mock module functions within (asynchronous) ExUnit tests using Erlang's :meck library
InfluxDB - Purpose built for real-time analytics at any scale.
Do you think we are missing an alternative of cobertura_cover or a related project?
README
CoberturaCover
A plugin for mix test --cover
that writes a coverage.xml
file compatible with Jenkins'
Cobertura plugin.
Inspired by covertool for Erlang.
Usage
Put this in your mix.exs
:
def project do
[
test_coverage: [tool: CoberturaCover]
]
end
defp deps do
[
{:cobertura_cover, "~> 0.9.0", only: :test}
]
end
Now you can run mix test --cover
to generate a coverage.xml
in your CI workflow.
If you only want to generate a coverage.xml
in your CI workflow and generate HTML output on your
workstation use this:
def project do
[
test_coverage: test_coverage(System.get_env("CI"))
]
end
defp test_coverage(nil), do: []
defp test_coverage(_), do: [tool: CoberturaCover]
defp deps do
[
{:cobertura_cover, "~> 0.9.0", only: :test}
]
end
If you want to get HTML output too you can configure it like this:
defp test_coverage(nil), do: []
defp test_coverage(_), do: [tool: CoberturaCover, html_output: "cover"]