Open arubis opened 7 years ago
@arubis I was looking at this issue, but I'm running into a slight issue. the --stale
flag and credo
do not play well together. Passing the --stale
flag into mix test.watch
results in the stale flag being passed to credo which causes the whole thing to die.
Which of these options do you think make the most sense :
credo
but not support --stale
credo
but document the use of --stale
--stale
by passing it into the configurationif Mix.env == :dev do
config :mix_test_watch,
tasks: [
"test --stale",
"credo",
]
end
The problem with the third option is that you are forced to use --stale
which might not be what you want.
Problem
mix test.watch
allows you to add tasks beyondtest
to run. It would be helpful to also run our linter,credo
. Because TDD is awesome.Subtasks
credo
to the tests run bymix test.watch
; Cf. https://github.com/lpil/mix-test.watchmix test.watch
--stale
flag, whichtest.watch
can receive directly. See https://hexdocs.pm/mix/Mix.Tasks.Test.html#module-stale