Skip to content

Commit

Permalink
Exclude v2 tests in primary test run
Browse files Browse the repository at this point in the history
  • Loading branch information
aerosol committed Mar 29, 2023
1 parent 1165df2 commit 5eaaa25
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/test_helper.exs
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
{:ok, _} = Application.ensure_all_started(:ex_machina)
Mox.defmock(Plausible.HTTPClient.Mock, for: Plausible.HTTPClient.Interface)
FunWithFlags.enable(:visits_metric)
ExUnit.start(exclude: :slow)
Application.ensure_all_started(:double)
Ecto.Adapters.SQL.Sandbox.mode(Plausible.Repo, :manual)

if Plausible.v2?() do
ExUnit.configure(exclude: [:slow])

IO.puts("Running tests against v2 schema")
else
ExUnit.configure(exclude: [:v2_only, :slow])

IO.puts(
"Running tests against v1 schema. Use: `V2_MIGRATION_DONE=1 mix test` for secondary run."
)
Expand Down

0 comments on commit 5eaaa25

Please sign in to comment.