livebook/config/test.exs
Jonatan Kłosko 75eb031719
Automate searching and adding new dependencies (#1081)
* Automate searching and adding new dependencies

* Restructure runtime management

* Leave search restrictions up to the runtime

* Support predefined dependencies in Embedded runtime dependency search

* Use the embedded runtime for dependency search test

* Fix typo

* Use module for loading embedded runtime dependencies

* Improve naming
2022-04-01 20:13:37 +02:00

30 lines
844 B
Elixir

import Config
# We don't run a server during test. If one is required,
# you can enable the server option below.
config :livebook, LivebookWeb.Endpoint,
http: [port: 4002],
server: false
config :livebook, :iframe_port, 4003
# Print only warnings and errors during test
config :logger, level: :warn
# Disable authentication mode during test
config :livebook, :authentication_mode, :disabled
data_path = Path.expand("tmp/livebook_data/test")
# Clear data path for tests
if File.exists?(data_path) do
File.rm_rf!(data_path)
end
config :livebook, :data_path, data_path
# Use longnames when running tests in CI, so that no host resolution is required,
# see https://github.com/livebook-dev/livebook/pull/173#issuecomment-819468549
if System.get_env("CI") == "true" do
config :livebook, :node, {:longnames, :"livebook@127.0.0.1"}
end