Skip to content

Commit

Permalink
use mneme.watch so test-watch works with mneme
Browse files Browse the repository at this point in the history
  • Loading branch information
mayel committed Nov 7, 2024
1 parent 07ad429 commit 4d5c1e1
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
6 changes: 4 additions & 2 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -581,11 +581,13 @@ test-remote *args='':
# Run stale tests, and wait for changes to any module code, and re-run affected tests
test-watch *args='':
@echo "Testing $@..."
MIX_ENV=test just mix test.watch --stale --exclude mneme $@
MIX_ENV=test just mix mneme.watch --stale $@
# MIX_ENV=test just mix test.watch --stale --exclude mneme $@

test-watch-full *args='':
@echo "Testing $@..."
MIX_ENV=test just mix test.watch --exclude mneme $@
MIX_ENV=test just mix mneme.watch $@
# MIX_ENV=test just mix test.watch --exclude mneme $@

# Run stale tests, and wait for changes to any module code, and re-run affected tests, and interactively choose which tests to run
test-interactive *args='':
Expand Down
12 changes: 8 additions & 4 deletions mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,8 @@ defmodule Bonfire.Umbrella.MixProject do
"~> 0.5.0",
# git: "https://gitlab.com/mayel/archeometer",
# NOTE: exqlite not working in CI
only: [:dev], runtime: false
only: [:dev],
runtime: false
},
{:recode, "~> 0.4", only: :dev},
# API client needed for changelog generation
Expand All @@ -106,7 +107,8 @@ defmodule Bonfire.Umbrella.MixProject do
"~> 0.3.20",
# path: "forks/igniter",
# git: "https://github.com/ash-project/igniter",
only: [:dev, :test], override: true
only: [:dev, :test],
override: true
},

# tests
Expand All @@ -116,7 +118,8 @@ defmodule Bonfire.Umbrella.MixProject do
:phoenix_test,
"~> 0.3",
# git: "https://github.com/germsvel/phoenix_test",
only: :test, runtime: false
only: :test,
runtime: false
},
{:mock, "~> 0.3", only: :test},
{:mox, "~> 1.0", only: :test},
Expand Down Expand Up @@ -435,7 +438,8 @@ defmodule Bonfire.Umbrella.MixProject do
# ValueFlows,
Iconify
]
]
],
preferred_cli_env: ["mneme.test": :test, "mneme.watch": :test]
]
end

Expand Down

0 comments on commit 4d5c1e1

Please sign in to comment.