1
import Config
2
3
# Configure your database
4
#
5
# The MIX_TEST_PARTITION environment variable can be used
6
# to provide built-in test partitioning in CI environment.
7
# Run `mix help test` for more information.
8
config :pipa, Pipa.Repo,
9
database: "db/test#{System.get_env("MIX_TEST_PARTITION")}.db",
10
pool: Ecto.Adapters.SQL.Sandbox,
11
pool_size: System.schedulers_online() * 2
12
13
# We don't run a server during test. If one is required,
14
# you can enable the server option below.
15
config :pipa, PipaWeb.Endpoint,
16
http: [ip: {127, 0, 0, 1}, port: 4002],
17
secret_key_base: "zjNifXVqfrfcxhvQZNjYUsGzRL2ARNxUzpzgbRSn1rvjXiLLSxTXjujb6mlgcDqt",
18
server: false
19
20
# In test we don't send emails
21
config :pipa, Pipa.Mailer, adapter: Swoosh.Adapters.Test
22
23
# Disable swoosh api client as it is only required for production adapters
24
config :swoosh, :api_client, false
25
26
# Print only warnings and errors during test
27
config :logger, level: :warning
28
29
# Initialize plugs at runtime for faster test compilation
30
config :phoenix, :plug_init_mode, :runtime
31
32
# Enable helpful, but potentially expensive runtime checks
33
config :phoenix_live_view,
34
enable_expensive_runtime_checks: true
35