-
-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add coverage reporting #25
Comments
Hi, how would you like this to be done? Calling |
I was thinking about ExCoveralls or Covertool and upload them to CodeCov.io |
Ok! Will have a look into it. |
I have configured
Do you think that this might be related to the way The culprit of the error is that while running
What I find strange is that I'm running all Any hint would be appreciated. Thanks |
So you have branch that I can look into? |
Just pushed to https://github.com/marc0s/mix_unused/tree/25-coverage-report Thanks |
For running the coverage analysis and report, run (branch updated with before missing |
It seems like bug in ExCoveralls triggered by the fact that we are using |
This patch to < :error -> Mix.Project.config_files() |> Enum.find(&(&1 =~ ~r/mix.exs/)) |> Path.dirname()
---
> :error -> File.cwd!() And as |
Otherwise it will fail if tests use [`in_project/3`][1] with confusing error about the fact that `nil` cannot be used in `Path.dirname/1`. It should work 100% of the time as Mix will work only when ran in directory with `mix.exs` in it, and when running in umbrella it will change directory to the sub project before running tasks. Ref hauleth/mix_unused#25 [1]: https://hexdocs.pm/mix/Mix.Project.html#in_project/3
Looks like your fix makes it work:
|
No description provided.
The text was updated successfully, but these errors were encountered: