Open your iTerm2 preferences, then under
Profiles / Advanced / Triggers add some regular expressions for the errors you want to notify. On
Post Notification, if the regex has group captures, you can use them as parameters.
Run Command with parameters:
mix test --listen-on-stdin will re-run tests when you hit enter.
Others like to use the
mix_test_watch package, but I prefer not to add another dependency.