goofansu
In the AUTOMATING YOUR CONSISTENCY CHECKS, there is an alias:
def aliases do
[
"ensure_consistency": ["test", "dialyzer", "credo --strict", "inch", "coveralls"]
]
end
When I tried in my own project, it complains:
** (Mix) "mix test" is running on environment "dev". If you are running tests along another task, please set MIX_ENV explicitly.
I suppose it should execute in MIX_ENV=test mix ensure_consistency, but in previous chapters, the deps are:
defp deps do
[
{:credo, "~> 0.8.8", only: [:dev], runtime: false},
{:dialyxir, "~> 0.5", only: [:dev], runtime: false},
{:excoveralls, "~> 0.7.4", only: [:test], runtime: false},
{:ex_doc, "~> 0.18", only: [:dev], runtime: false},
{:inch_ex, "~> 0.5", only: [:dev, :test], runtime: false}
]
end
So the credo and dialyxir are available only in dev mode while excoveralls only in test mode, it seems existing a conflict.
Is there something wrong? Thanks
Trending in Chat/Questions
Other Trending Topics
Hey, I’m Jesse and I’m the main contributor behind Dexter, a full-featured, lightning-fast Elixir LSP optimized for large codebases. It s...
New
I am happy to introduce the very α version of the new programming language compiled to BEAM.
Welcome Cure.
It has literally three kille...
New
Hi there! We created Gust: A task orchestrator inspired by Airflow.
For those who have never heard about Aiflow, it’s a Python-based wor...
New
Hi everyone!
The first release candidate for the Expert language server project is now available!
We’ve published a press release detai...
New
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
Xamal is a deployment tool for Elixir apps that deploys native releases to bare metal servers over SSH. It’s a port of GitHub - basecamp/...
New
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
- #elixirconf-us
- #ai
- #blog-post
- #elixir-ls
- #phoenix_html
- #iex
- #graphql
- #genstage
- #websockets
- #supervisor
- #advent-of-code
- #distillery
- #processes
- #api
- #forms
- #metaprogramming
- #hex
- #security










Showing Posts 1 to 3- Show Best Posts
- Show All (oldest first)
- Show All (newest first)
goofansu
I changed the deps as following, and run
MIX_ENV=test mix ensure_consistency, it works.But “coveralls” cannot output anything. If I run
mix converalls, it have the output.josevalim
I believe there is a
:preferred_cli_envconfiguration you should set too.goofansu
Ah, yes, I have set
:preferred_cli_envWhen I run
mix ensure_consistency, thecoverallsseems not work. For example, I changed it to a typo word likeimcoveralls, I expected it to reportThe task "imcoveralls" could not be found, but even no such error.And
inchhas the same problem.The output of
mix ensure_consistency: