mirror of
https://github.com/kevin-DL/phoenix_api_template.git
synced 2026-01-14 11:54:40 +00:00
Initial commit
This commit is contained in:
27
config/test.exs
Normal file
27
config/test.exs
Normal file
@@ -0,0 +1,27 @@
|
||||
import Config
|
||||
|
||||
# Configure your database
|
||||
#
|
||||
# The MIX_TEST_PARTITION environment variable can be used
|
||||
# to provide built-in test partitioning in CI environment.
|
||||
# Run `mix help test` for more information.
|
||||
config :phoenix_api_template, PhoenixApiTemplate.Repo,
|
||||
username: "postgres",
|
||||
password: "postgres",
|
||||
hostname: "localhost",
|
||||
database: "phoenix_api_template_test#{System.get_env("MIX_TEST_PARTITION")}",
|
||||
pool: Ecto.Adapters.SQL.Sandbox,
|
||||
pool_size: 10
|
||||
|
||||
# We don't run a server during test. If one is required,
|
||||
# you can enable the server option below.
|
||||
config :phoenix_api_template, PhoenixApiTemplateWeb.Endpoint,
|
||||
http: [ip: {127, 0, 0, 1}, port: 4002],
|
||||
secret_key_base: "XXbF2OiTE49M7ToC6Avw9mFLV3DsmRWzTDmFqMqMHm4Oy60P8Zqteg0IupJ6Dj56",
|
||||
server: false
|
||||
|
||||
# Print only warnings and errors during test
|
||||
config :logger, level: :warn
|
||||
|
||||
# Initialize plugs at runtime for faster test compilation
|
||||
config :phoenix, :plug_init_mode, :runtime
|
||||
Reference in New Issue
Block a user