Skip to content

mix test --cover not writing cover data #334

Open
@gilbertbw

Description

@gilbertbw

I have added excoveralls to my project, and set it up as so:

defmodule Blah.MixProject do
 def project do
    [
#...
      test_coverage: [tool: ExCoveralls],
      preferred_cli_env: [coveralls: :test]
    ]
  end
#...
  defp deps do
    [
# ...
      {:excoveralls, "~> 0.18.3"}
    ]
  end
end

In the readme it says

Coverage data is generated when running `mix test --cover`, optionally with the `--export-coverage` flag to specify an output name.

But now when I run mix test --cover nothing gets written. Before I installed excoveralls mix test --cover did write out the built in coverage report.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions