alfert/coverex

Doesn't work with 0.15.1

alexrp opened this issue · 7 comments

** (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

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.

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}

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

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

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.

Appears to work now. Thanks!

Resolved in 0.0.7