Comments (9)
Related gist which may help you with further ideas: https://gist.github.com/josevalim/a5e747c90a72e40a4b52062ea6919877
from mix-test.watch.
Gosh. Suddenly all that work seems a bit pointless. :P
Thanks for the info!
from mix-test.watch.
I think we still need the watching bit, just the restart bit that got much much easier! :D
from mix-test.watch.
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.
If we use :init.restart/0 we'll lose the state each time the tests run. :(
Yes :(
from mix-test.watch.
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.
Yeah, it may be faster with the risk of potentially running on outdated state.
from mix-test.watch.
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.
Closing as --listen-on-stdin
exists now
from mix-test.watch.
Related Issues (20)
- Running with `mix cmd` leaves a zombie process HOT 1
- Feature: Loop on failed HOT 1
- --stale option doesn't work on Elixir v1.7.* HOT 7
- `test.watch` for one test file runs all tests instead HOT 5
- zombie_killer script not shipping with package HOT 1
- zombie_killer not executing correctly HOT 9
- test.watch so slow and hangs sometime HOT 8
- Database couldn't be dropped HOT 10
- Interactive watch mode HOT 2
- test watch terminating on MacOSX 11.1 HOT 7
- Warning when configuring `:mix_test_watch` in Umbrella project
- ** (Mix) The task "test.watch" could not be found HOT 4
- Automatically run deps.get when missing dep HOT 1
- Prevent execution of commands of mix :dev environment HOT 4
- ** (Postgrex.Error) ERROR 40P01 (deadlock_detected) deadlock detected HOT 2
- Config.env() is deprecated HOT 1
- Missing file completion on macOS zsh HOT 2
- Passing cli_args HOT 1
- Clear screen and scroll history
- Support running in custom mix envs
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mix-test.watch.