mirror of
https://github.com/wanderer-industries/wanderer
synced 2026-04-30 22:40:30 +00:00
19 lines
477 B
Elixir
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()
|
|
)
|