2019-09-02 14:29:19 +03:00
|
|
|
{:ok, _} = Application.ensure_all_started(:ex_machina)
|
2022-09-23 13:22:43 +03:00
|
|
|
Mox.defmock(Plausible.HTTPClient.Mock, for: Plausible.HTTPClient.Interface)
|
2020-02-26 11:54:21 +03:00
|
|
|
Application.ensure_all_started(:double)
|
2024-02-28 11:34:04 +03:00
|
|
|
FunWithFlags.enable(:imports_exports)
|
2024-03-25 12:36:22 +03:00
|
|
|
FunWithFlags.enable(:shield_pages)
|
2024-04-04 13:54:23 +03:00
|
|
|
|
|
|
|
# Temporary flag to test `experimental_reduced_joins` flag on all tests.
|
|
|
|
if System.get_env("TEST_EXPERIMENTAL_REDUCED_JOINS") == "1" do
|
|
|
|
FunWithFlags.enable(:experimental_reduced_joins)
|
|
|
|
else
|
|
|
|
FunWithFlags.disable(:experimental_reduced_joins)
|
|
|
|
end
|
|
|
|
|
2019-09-02 14:29:19 +03:00
|
|
|
Ecto.Adapters.SQL.Sandbox.mode(Plausible.Repo, :manual)
|
2023-11-20 14:52:20 +03:00
|
|
|
|
|
|
|
if Mix.env() == :small_test do
|
2023-11-29 13:04:54 +03:00
|
|
|
IO.puts("Test mode: SMALL")
|
2024-02-27 16:19:09 +03:00
|
|
|
ExUnit.configure(exclude: [:slow, :minio, :full_build_only])
|
2023-11-20 14:52:20 +03:00
|
|
|
else
|
2023-11-29 13:04:54 +03:00
|
|
|
IO.puts("Test mode: FULL")
|
2024-02-27 16:19:09 +03:00
|
|
|
ExUnit.configure(exclude: [:slow, :minio, :small_build_only])
|
2023-11-20 14:52:20 +03:00
|
|
|
end
|