Comments (8)
This sounds like #110 , could you please try upgrading to the latest version? Thank you :)
Thank you for the detailed information, very useful!
from mix-test.watch.
@lpil Thank you so much
Upgrading to the latest version solved the issue.
from mix-test.watch.
Hi @smahi can you tell me more about your setup and the problem? I use this project with Ubuntu and VSCode without problem so there must be something in addition.
Is it slow to start after changes or is it slower to run the suite? Can you share more detailed system information? Does it happen in other editors? In the regular terminal? Is it slow if you use inotify directly rather than using it via mix test.watch?
Thank you
from mix-test.watch.
Hi @lpil
For example when i start it, it did not run the the suite it hangs displaying running tests...
, this happen also after saving changes.
On the other hand the test
command is fast as usual.
from mix-test.watch.
@lpil
I am using only VSCode as my main an only editor, and it's integrated Terminal where i run tests.
from mix-test.watch.
@lpil
The same behavior happen when running the test.watch
command from gnome Terminal.
After saving changes it hangs displaying only running tests...
, i have to save multiple time so that the test suite runs. and sometimes I have to interrupt the command then rerun it again.
from mix-test.watch.
@lpil
My development environment
$ elixir -v
Erlang/OTP 22 [erts-10.5.4] [source] [64-bit] [smp:4:4] [ds:4:4:10] [async-threads:1] [hipe]
Elixir 1.9.4 (compiled with Erlang/OTP 22)
$ cat /etc/os-release
NAME="Ubuntu"
VERSION="19.10 (Eoan Ermine)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 19.10"
VERSION_ID="19.10"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=eoan
$ code -v
1.40.1
879xxxxxxxxxxxxxxxxxxxxxxxxxxxxa619
x64
// mix.exs
defmodule UnivPlatform.MixProject do
use Mix.Project
def project do
[
app: :univ_platform,
version: "0.1.0",
elixir: "~> 1.5",
elixirc_paths: elixirc_paths(Mix.env()),
compilers: [:phoenix, :gettext] ++ Mix.compilers(),
start_permanent: Mix.env() == :prod,
aliases: aliases(),
deps: deps()
]
end
# Configuration for the OTP application.
#
# Type `mix help compile.app` for more information.
def application do
[
mod: {UnivPlatform.Application, []},
extra_applications: [:logger, :runtime_tools]
]
end
# Specifies which paths to compile per environment.
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
# Specifies your project dependencies.
#
# Type `mix help deps` for examples and options.
defp deps do
[
{:phoenix, "~> 1.4.11"},
{:phoenix_pubsub, "~> 1.1"},
{:phoenix_ecto, "~> 4.0"},
{:ecto_sql, "~> 3.1"},
{:postgrex, ">= 0.0.0"},
{:gettext, "~> 0.11"},
{:jason, "~> 1.0"},
{:plug_cowboy, "~> 2.0"},
{:mix_test_watch, "~> 1.0"},
{:argon2_elixir, "~> 2.1"},
{:ex_machina, "~> 2.3", only: :test}
]
end
# Aliases are shortcuts or tasks specific to the current project.
# For example, to create, migrate and run the seeds file at once:
#
# $ mix ecto.setup
#
# See the documentation for `Mix` for more info on aliases.
defp aliases do
[
"ecto.setup": ["ecto.create", "ecto.migrate", "run priv/repo/seeds.exs"],
"ecto.reset": ["ecto.drop", "ecto.setup"],
test: ["ecto.create --quiet", "ecto.migrate", "test"]
]
end
end
from mix-test.watch.
@lpil
Can you describe how to use inotify directly, please.
Thank you so much your help.
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
- 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.