refactor: move slow performance tests to extra test suite
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Simon 2026-01-28 12:00:32 +01:00
parent fce01ddf83
commit 67e06e12ce
Signed by: simon
GPG key ID: 40E7A58C4AA1EDB2
10 changed files with 433 additions and 5 deletions

View file

@ -79,6 +79,7 @@ defmodule Mv.Membership.GroupIntegrationTest do
end
end
@moduletag :slow
describe "Query Performance" do
test "preloading groups with members avoids N+1 queries", %{actor: actor} do
# Create test data

View file

@ -114,6 +114,7 @@ defmodule MvWeb.GroupLive.IndexTest do
end
end
@moduletag :slow
describe "performance" do
test "page loads efficiently with many groups", %{conn: conn} do
# Create multiple groups

View file

@ -219,6 +219,7 @@ defmodule MvWeb.GroupLive.ShowTest do
end
end
@moduletag :slow
describe "performance" do
test "member list is loaded efficiently (no N+1 queries)", %{conn: conn} do
group = Fixtures.group_fixture()

View file

@ -238,6 +238,7 @@ defmodule MvWeb.MemberLive.IndexMembershipFeeStatusTest do
end
end
@moduletag :slow
describe "performance" do
test "loads cycles efficiently without N+1 queries", %{conn: conn} do
fee_type = create_fee_type(%{interval: :yearly})

View file

@ -1775,6 +1775,7 @@ defmodule MvWeb.MemberLive.IndexTest do
assert Enum.any?(boolean_fields_after, &(&1.name == "Newly Added Field"))
end
@tag :slow
test "boolean filter performance with 150 members", %{conn: conn} do
system_actor = Mv.Helpers.SystemActor.get_system_actor()
conn = conn_with_oidc_user(conn)