Skip to content

Commit

Permalink
Fix: configure mix_iex_test for CI
Browse files Browse the repository at this point in the history
  • Loading branch information
mindreframer committed Feb 1, 2024
1 parent 502662c commit 9930059
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions config/runtime.exs
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,23 @@ config :maxo_adapt, debug: false
if config_env() == :test do
config :maxo_adapt, default_mode: :get_dict
end

if config_env() == :test do
# for default values look into:
# - https://github.com/maxohq/maxo_test_iex/blob/main/lib/test_iex/config.ex

# NO need to watch for tests on CI
if System.get_env("CI"), do: config(:maxo_test_iex, watcher_enable: false)

# how long multiple consecutive events on the same file should be considered duplicates?
config :maxo_test_iex, watcher_dedup_timeout: 500

# which file changes should trigger a test re-run?
config :maxo_test_iex, watcher_args: [dirs: ["lib/", "test/"], latency: 0]

# which file extensions are relevant to trigger a test re-run?
config :maxo_test_iex, watcher_extensions: [".ex", ".exs"]

# should we log debug messages?
config :maxo_test_iex, debug: false
end

0 comments on commit 9930059

Please sign in to comment.