From 4d5c1e1c07cf00322fde74f6c7931b896f24e1c2 Mon Sep 17 00:00:00 2001 From: Mayel de Borniol Date: Thu, 7 Nov 2024 14:27:07 +0000 Subject: [PATCH] use mneme.watch so test-watch works with mneme --- justfile | 6 ++++-- mix.exs | 12 ++++++++---- 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/justfile b/justfile index 85888fd0af..ea0fa30e0b 100644 --- a/justfile +++ b/justfile @@ -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='': diff --git a/mix.exs b/mix.exs index 5716f1890f..e306469069 100644 --- a/mix.exs +++ b/mix.exs @@ -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 @@ -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 @@ -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}, @@ -435,7 +438,8 @@ defmodule Bonfire.Umbrella.MixProject do # ValueFlows, Iconify ] - ] + ], + preferred_cli_env: ["mneme.test": :test, "mneme.watch": :test] ] end