Git Product home page Git Product logo

Comments (9)

josevalim avatar josevalim commented on May 19, 2024

Related gist which may help you with further ideas: https://gist.github.com/josevalim/a5e747c90a72e40a4b52062ea6919877

from mix-test.watch.

lpil avatar lpil commented on May 19, 2024

Gosh. Suddenly all that work seems a bit pointless. :P

Thanks for the info!

from mix-test.watch.

josevalim avatar josevalim commented on May 19, 2024

I think we still need the watching bit, just the restart bit that got much much easier! :D

from mix-test.watch.

lpil avatar lpil commented on May 19, 2024

The watching is easy thanks to fs. :)

One of the features I want is having IEx running at the same time so that one can type expressions in the repl while the tests are not running. If we use :init.restart/0 we'll lose the state each time the tests run. :(

from mix-test.watch.

josevalim avatar josevalim commented on May 19, 2024

If we use :init.restart/0 we'll lose the state each time the tests run. :(

Yes :(

from mix-test.watch.

lpil avatar lpil commented on May 19, 2024

Perhaps we can support both once we get test modules closing after an exception is thrown when compiling them. (keen to take a stab at this myself, but have had a busy week)

There are advantages to each method. The init one wipes clean all state and works for versions of Elixir that don't have the test module closing, the other one gives us the repl and might be a touch faster (?).

from mix-test.watch.

josevalim avatar josevalim commented on May 19, 2024

Yeah, it may be faster with the risk of potentially running on outdated state.

from mix-test.watch.

lpil avatar lpil commented on May 19, 2024

Yes I think people have had problems with state in Phoenix applications already. I need to find some time to read the rebar3 autotest plugin so I can see how it is managed there. It re-uses the VM and features a repl.

from mix-test.watch.

lpil avatar lpil commented on May 19, 2024

Closing as --listen-on-stdin exists now

from mix-test.watch.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.