Each os requires a different way of watching files, fsevents for MacOS, inotify for Linux, (sorry I don't know the equivalent for Windows people), or fall back to polling. All of which is a lot of unrelated work for exunit. Why not let an extra package do the work?
You could always write a custom task (or a package could) to offer `mix test.watch` etc On March 21, 2021, Yordis Prieto <[email protected]> wrote: > I mean define "already exists" since as you said, I need another tool > to watch the files (which I have been doing that) > > The point is that you don't have to pipe things or use packages in > order to get the full experience. > On Sat, Mar 20, 2021 at 7:10 PM José Valim <[email protected] > <mailto:[email protected]>> wrote: > 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] > <mailto:[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] > > <mailto:[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 a topic in > the Google Groups "elixir-lang-core" group. > To unsubscribe from this topic, visit > <https://groups.google.com/d/topic/elixir-lang- > core/Vp6pSzdi5rw/unsubscribe>. > To unsubscribe from this group and all its topics, send an email to > [email protected] <mailto:elixir-lang- > [email protected]>. > To view this discussion on the web visit > https://groups.google.com/d/msgid/elixir-lang- > core/CAGnRm4JPq6CoBOdYMEkcVgASxTjXoZ4g- > 2HEczPpsbDwjyL0PQ%40mail.gmail.com > <https://groups.google.com/d/msgid/elixir-lang- > core/CAGnRm4JPq6CoBOdYMEkcVgASxTjXoZ4g- > 2HEczPpsbDwjyL0PQ%40mail.gmail.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] > <mailto:[email protected]>. > To view this discussion on the web visit > https://groups.google.com/d/msgid/elixir-lang- > core/CAAKqwiGwBpoVpmAFWYq7E%3DqK-%2BijsGXEUafpHWRMJBnNLw- > AQQ%40mail.gmail.com <https://groups.google.com/d/msgid/elixir-lang- > core/CAAKqwiGwBpoVpmAFWYq7E%3DqK-%2BijsGXEUafpHWRMJBnNLw- > AQQ%40mail.gmail.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/5b3f52310b329e2b5542e183ffdfa673b3ab1dde%40hey.com.
