Skip to content

Instantly share code, notes, and snippets.

@batate
Last active October 11, 2019 20:00
Show Gist options
  • Save batate/fd9e7569b3861a80a0b3 to your computer and use it in GitHub Desktop.
Save batate/fd9e7569b3861a80a0b3 to your computer and use it in GitHub Desktop.
coveralls elixir setup
defmodule Chat.Mixfile do
defp deps do
[{:excoveralls, only: :test}]
end
defp test(args) do
...
Mix.Task.run("test")
Mix.shell.info("")
Mix.shell.info("$ mix coveralls - coverage overview")
Mix.shell.info("$ mix coveralls.detail FILENAME - line-by-line coverage of file")
end
defp cli_env do
[coveralls: :test,
"coveralls.detail": :test]
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment