Files
wanderer/test/test_helper.exs
T
2025-07-16 23:17:47 +00:00

19 lines
477 B
Elixir

# Ensure we're in test environment BEFORE anything else
Application.put_env(:wanderer_app, :environment, :test)
# Start ExUnit
ExUnit.start()
# Start the application
{:ok, _} = Application.ensure_all_started(:wanderer_app)
# Setup Ecto Sandbox for database isolation
Ecto.Adapters.SQL.Sandbox.mode(WandererApp.Repo, :manual)
# Basic ExUnit configuration
ExUnit.configure(
exclude: [:pending, :integration],
capture_log: false,
max_cases: System.schedulers_online()
)