fireproofsocks
I’m trying to install and run excoveralls in an umbrella app. Installation and compilation work just fine – I see the excoveralls folder inside dep and "0.16.0" inside the mix.lock. mix.exs includes:
{:excoveralls, "~> 0.16.0", only: [:dev], runtime: false},
However, when I try to run mix coveralls, I get
** (Mix) The task "coveralls" could not be found
Curiously, there is NOT a folder created inside of _build… which would explain why the mix task could not be found. But why didn’t this compile?
This is an umbrella app… the dependency was listed in the root mix.exs with the following modifier to the mix.exs:
test_coverage: [
tool: ExCoveralls
],
preferred_cli_env: [
coveralls: :test,
"coveralls.detail": :test
]
And I followed the documentation’s advice for umbrellas and added
test_coverage: [
tool: ExCoveralls
],
to the other mix.exs files.
But still no dice.
The only thing that is unusual about this repository is that up till now, the built-in Erlang :cover library was being tapped to do coverage reports. We’d do this:
mix test --cover
So the only guess I have is that it’s somehow interfering with ExCoveralls, but I can’t pinpoint it. I have tried deleting the _build and deps directories, but the result is the same.
Anyone have ideas? Thanks in advance!
Trending in Questions
Other Trending Topics
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #library
- #deployment
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #elixirconf
- #channels
- #exunit
- #discussion
- #code-sync
- #podcasts
- #javascript
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #ai
- #elixirconf-us
- #blog-post
- #elixir-ls
- #phoenix_html
- #iex
- #graphql
- #genstage
- #websockets
- #supervisor
- #advent-of-code
- #distillery
- #processes
- #api
- #forms
- #elixirconf-eu
- #metaprogramming
- #hex










Showing Posts 1 to 5- Show Best Posts
- Show All (oldest first)
- Show All (newest first)
christhekeele
What is the command you are using exactly that is failing? (I assume it’s
mix coveralls?)Additionally, what does your entry in your
mix.exsdef depsfunction look like for this dependency?fireproofsocks
Original message updated…
BradS2S
In an umbrella app, you’ve got (at least) three mix files so that it was jumps out to me in terms of mix not working the way you were expecting.
christhekeele
I believe you are only adding the
:excoverallsdependency in:devenvironments,but you also want it available in the
:testenvironment thatmix testuses by default (and you are using in:preferred_cli_env). Try:{:excoveralls, "~> 0.16.0", only: [:dev, :test], runtime: false},fireproofsocks
oiy, I think you’re right.
I ended up trying this again in a fresh branch and the problem was gone. Thank you for input!