alfert / coverex

Coverage Reports for Elixir
Other
101 stars 26 forks source link

Doesn't work with 0.15.1 #6

Closed alexrp closed 10 years ago

alexrp commented 10 years ago
** (UndefinedFunctionError) undefined function: Coverex.Task.start/2
    Coverex.Task.start("/home/alexrp/Projects/ex_parsec/_build/test/lib/ex_parsec/ebin", [tool: Coverex.Task, output: "cover"])
    (mix) lib/mix/tasks/test.ex:157: Mix.Tasks.Test.run/1
    (mix) lib/mix/task.ex:245: Mix.Task.run_alias/3
    (mix) lib/mix/task.ex:220: Mix.Task.run/2
    (mix) lib/mix/cli.ex:60: Mix.CLI.run_task/2
    (elixir) src/elixir_lexical.erl:17: :elixir_lexical.run/3
alfert commented 10 years ago

Strange. Get the same error when running coverex on my my reaxive project. But it does work on coverex itself, i.e. by running

coverex$> mix test --cover

I will look into this.

alfert commented 10 years ago

Alex, how did you define the dependency to coverex? I get the error, when I define the dep only for dev, as in:

{:coverex, "~> 0.0.6", only: :dev}

It works, if you use the test environment:

{:coverex, "~> 0.0.6", only: :test}
alexrp commented 10 years ago

Ah, of course! I had it set to :dev.

That gets me a bit further, but still results in an error: https://gist.github.com/alexrp/3106fe53b49619ed70de

alfert commented 10 years ago

Yes. I got the same. I work on it.

alfert commented 10 years ago

Hi Alex,

could you please try out the current master? I have added support for protocols, implementations and nested modules. At least for Reaxive, everything works now.

Klaus.

alexrp commented 10 years ago

Appears to work now. Thanks!

alfert commented 10 years ago

Resolved in 0.0.7