Skip to content
This repository was archived by the owner on Nov 8, 2022. It is now read-only.

Commit 866c9d5

Browse files
committed
fix(test): workaround for test.watch
1 parent 4bb042d commit 866c9d5

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

Makefile

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,8 +166,13 @@ test:
166166
test.watch:
167167
mix test.watch
168168
test.watch.wip:
169-
mix test.watch --only wip --file-events
169+
# work around, see: https://elixirforum.com/t/mix-test-file-watch/12298/2
170+
mix test --listen-on-stdin --stale --trace --only wip
171+
# test.watch not work now, see: https://github.com/lpil/mix-test.watch/issues/116
172+
# mix test.watch --only wip --stale
170173
test.watch.wip2:
174+
mix test --listen-on-stdin --stale --trace --only wip2
175+
# mix test.watch --only wip2
171176
mix test.watch --only wip2
172177
test.watch.bug:
173178
mix test.watch --only bug

config/config.exs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@ config :logger, :console,
2222

2323
config :phoenix, :json_library, Jason
2424

25-
config :groupher_server, :mix_test_watch, exclude: [~r/docs\/.*/, ~r/deps\/.*/, ~r/mix.exs/]
25+
config :groupher_server, :mix_test_watch,
26+
exclude: [~r/docs\/.*/, ~r/deps\/.*/, ~r/mix.exs/],
27+
clear: true
2628

2729
config :pre_commit, commands: ["format"], verbose: false
2830
# Import environment specific config. This must remain at the bottom

0 commit comments

Comments
 (0)