This feature already exists as —listen-to-stdin. You just need a tool, like
fsevents, to watch the file:

    fsevents . | mix test —stale —listen-to-stdin

The above will only run the files that changes (or the tests that depend on
the files that have changed).

On Sat, Mar 20, 2021 at 23:56 Yordis Prieto <[email protected]> wrote:

> Hey folks,
>
> I never bothered me before not having the watch mode for test command, and
> I was totally fine using a package that allow me to have the functionality.
>
> But I am wondering why we don't get a *mix test --watch* or something
> like that that allow us to have quick feedback loop.
>
> Observing the words of somebody that is not an Elixir developer but
> passionate about TDD, not having such mode said a lot to the person about
> how Elixir developer think about TDD (shrug).
>
>  The intention was given in a constructive manner, which without getting
> philosophical about the topic, I can see how having watch mode in testing
> will be welcoming for some folks and embracing the quick feedback loop
> (regardless if you do extreme TDD, or not). And personally I don't have to
> keep installing packages just for such feature.
>
> Thoughts?
>
> --
> You received this message because you are subscribed to the Google Groups
> "elixir-lang-core" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/elixir-lang-core/62b26b5c-2cbf-406f-b910-22f041565f76n%40googlegroups.com
> <https://groups.google.com/d/msgid/elixir-lang-core/62b26b5c-2cbf-406f-b910-22f041565f76n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"elixir-lang-core" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elixir-lang-core/CAGnRm4JPq6CoBOdYMEkcVgASxTjXoZ4g-2HEczPpsbDwjyL0PQ%40mail.gmail.com.

Reply via email to