You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A common pattern we use with mix-test.watch is to run mix tes.watcht, and if any errors are found run mix test.watch --failed, fixing errors until all the failed ones are clear, then run mix test.watch again, and if any new errors are found, run mix test.watch --failed, basically swapping between these two states of running a full mix test.watch and running mix test.watch --failed. Pseudocode:
def loop do
case "mix test" do
:errors ->
loop_on_failed()
loop()
:no_errors ->
wait_for_change()
loop()
end
end
def loop_on_failed do
case "mix test --failed" do
:errors ->
wait_for_changes()
loop_on_failed()
:no_errors ->
nil
end
end
Would love to see a flag in mix test.watch that would mimic this. Something like mix test.watch --loop-failed
The text was updated successfully, but these errors were encountered:
A common pattern we use with mix-test.watch is to run
mix tes.watcht
, and if any errors are found runmix test.watch --failed
, fixing errors until all the failed ones are clear, then runmix test.watch
again, and if any new errors are found, runmix test.watch --failed
, basically swapping between these two states of running a fullmix test.watch
and runningmix test.watch --failed
. Pseudocode:Would love to see a flag in mix test.watch that would mimic this. Something like
mix test.watch --loop-failed
The text was updated successfully, but these errors were encountered: