2021-02-16 19:29:41 +08:00
|
|
|
import Config
|
2021-01-08 03:55:45 +08:00
|
|
|
|
|
|
|
# We don't run a server during test. If one is required,
|
|
|
|
# you can enable the server option below.
|
2021-03-04 05:56:28 +08:00
|
|
|
config :livebook, LivebookWeb.Endpoint,
|
2021-01-08 03:55:45 +08:00
|
|
|
http: [port: 4002],
|
|
|
|
server: false
|
|
|
|
|
|
|
|
# Print only warnings and errors during test
|
|
|
|
config :logger, level: :warn
|
2021-02-11 19:42:17 +08:00
|
|
|
|
2021-04-15 21:50:29 +08:00
|
|
|
# Disable authentication mode during test
|
2021-04-15 20:15:56 +08:00
|
|
|
config :livebook, :authentication_mode, :disabled
|
2021-04-14 20:28:00 +08:00
|
|
|
|
2021-05-10 20:37:38 +08:00
|
|
|
# Use the embedded runtime in tests by default, so they
|
|
|
|
# are cheaper to run. Other runtimes can be tested by starting
|
|
|
|
# and setting them explicitly
|
2021-06-09 22:24:02 +08:00
|
|
|
config :livebook, :default_runtime, {Livebook.Runtime.Embedded, []}
|
2021-05-10 20:37:38 +08:00
|
|
|
|
2021-04-14 20:28:00 +08:00
|
|
|
# Use longnames when running tests in CI, so that no host resolution is required,
|
2021-08-18 21:55:07 +08:00
|
|
|
# see https://github.com/livebook-dev/livebook/pull/173#issuecomment-819468549
|
2021-04-14 20:28:00 +08:00
|
|
|
if System.get_env("CI") == "true" do
|
|
|
|
config :livebook, :node, {:longnames, :"livebook@127.0.0.1"}
|
|
|
|
end
|