Mayel de Borniol 2024-02-23 18:52:03 +00:00
parent a020a22b22
commit bc485160b1
2 changed files with 2 additions and 71 deletions

View file

@ -219,7 +219,7 @@
"opentelemetry_telemetry": {:hex, :opentelemetry_telemetry, "1.0.0", "d5982a319e725fcd2305b306b65c18a86afdcf7d96821473cf0649ff88877615", [:mix, :rebar3], [{:opentelemetry_api, "~> 1.0", [hex: :opentelemetry_api, repo: "hexpm", optional: false]}, {:telemetry, "~> 1.0", [hex: :telemetry, repo: "hexpm", optional: false]}, {:telemetry_registry, "~> 0.3.0", [hex: :telemetry_registry, repo: "hexpm", optional: false]}], "hexpm", "3401d13a1d4b7aa941a77e6b3ec074f0ae77f83b5b2206766ce630123a9291a9"},
"orion": {:hex, :orion, "1.0.4", "e99f0a34e9a90a1d841ef09e864917d73ac906c9d6d626bb12f9fa14b517b937", [:mix], [{:dog_sketch, "~> 0.1.2", [hex: :dog_sketch, repo: "hexpm", optional: false]}, {:jason, "~> 1.0", [hex: :jason, repo: "hexpm", optional: false]}, {:orion_collector, "~> 1.2.0", [hex: :orion_collector, repo: "hexpm", optional: false]}, {:phoenix_live_view, ">= 0.18.16 and <= 0.21.0", [hex: :phoenix_live_view, repo: "hexpm", optional: false]}], "hexpm", "219c39080c5c433691923775353759c207e4fe6c71ca602f1c0d01257073b664"},
"orion_collector": {:hex, :orion_collector, "1.2.0", "9041f55532faacadcc4d6259a1eac472fdd6d9ba533ccce9801d62dd72020332", [:mix], [{:dog_sketch, "~> 0.1.2", [hex: :dog_sketch, repo: "hexpm", optional: false]}, {:ex2ms, "~> 1.6", [hex: :ex2ms, repo: "hexpm", optional: false]}], "hexpm", "f6eb4687123c5845da2bb82002babdaf87ccb8ddb3762cde304aa09f24832422"},
"owl": {:hex, :owl, "0.9.0", "9b33d64734bd51d3fc1d6ed01b12f8c2ed23e1fbf8c43658a6dfbff62578bd03", [:mix], [{:ucwidth, "~> 0.2", [hex: :ucwidth, repo: "hexpm", optional: true]}], "hexpm", "cd70b55327985f8f24d38cb7de5bf8a8d24040e1b49cca2345508f8119ce81fd"},
"owl": {:hex, :owl, "0.8.0", "0ef925cb784311093d4e3734822960cbdbdb13b095d748bb5bc82abcd5b56732", [:mix], [], "hexpm", "0a5586ceb1a12f4bbda90e330c20e6ea034552335d09466c10e4218c98977529"},
"paginator": {:git, "https://github.com/bonfire-networks/paginator", "28f4a8106fd9f7b100b42af514530a5c2503601c", [branch: "main"]},
"pane": {:hex, :pane, "0.4.1", "ca4275b5799066d52c857e7b0deb2feaba409d607419fe54cde056329d247a89", [:mix], [], "hexpm", "27a292ca86f52d4777422930c17fd4a12eaa930d86a6193665c452f94a04ff8a"},
"paper_trail": {:git, "https://github.com/bonfire-networks/paper_trail", "fb7008fd3085e20b15018fb842711c35c0d26025", [branch: "with-pointers"]},

View file

@ -1,70 +1 @@
import Bonfire.Common.Config, only: [repo: 0]
running_a_second_test_instance? = System.get_env("TEST_INSTANCE") == "yes"
# Start ExUnitSummary application, with recommended config
# ExUnitSummary.start(:normal, %ExUnitSummary.Config{
# filter_results: :success,
# # filter_results: :failed,
# print_delay: 100
# })
ExUnit.configure(
# please note that Mneme overrides any custom formatters
formatters: Bonfire.Common.RuntimeConfig.test_formatters(),
#  miliseconds
timeout: 120_000,
assert_receive_timeout: 1000,
exclude: Bonfire.Common.RuntimeConfig.skip_test_tags(),
# only show log for failed tests (Can be overridden for individual tests via `@tag capture_log: false`)
capture_log: !running_a_second_test_instance?
)
ExUnit.configuration()
|> IO.inspect()
# Code.put_compiler_option(:nowarn_unused_vars, true)
ExUnit.start()
if System.get_env("TEST_WITH_MNEME") != "no", do: Mneme.start(), else: Mneme.Options.configure([])
Mix.Task.run("ecto.create")
Mix.Task.run("ecto.migrate")
# Ecto.Adapters.SQL.Sandbox.mode(repo(), :manual)
# if System.get_env("PHX_SERVER") !="yes" do
Ecto.Adapters.SQL.Sandbox.mode(repo(), :auto)
# end
# ExUnit.after_suite(fn results ->
# # do stuff
# IO.inspect(test_results: results)
# :ok
# end)
Application.put_env(:wallaby, :base_url, Bonfire.Web.Endpoint.url())
chromedriver_path = Bonfire.Common.Config.get([:wallaby, :chromedriver, :path])
if chromedriver_path && File.exists?(chromedriver_path),
do: {:ok, _} = Application.ensure_all_started(:wallaby),
else: IO.inspect("Note: Wallaby UI tests will not run because the chromedriver is missing")
# insert fixtures in test instance's repo on startup
if running_a_second_test_instance?,
do: Bonfire.Common.TestInstanceRepo.apply(&Bonfire.Boundaries.Fixtures.insert/0)
IO.puts("""
Testing shows the presence, not the absence of bugs.
- Edsger W. Dijkstra
""")
if System.get_env("OBSERVE") do
Bonfire.Application.observer()
end
ExUnit.configuration()
|> IO.inspect()
Bonfire.Testing.configure_start_test()