Skip to content

Test fixture complexity creates cognitive load (unique HouseholdIds, feature flags, isolation) #376

Description

@DigiBanks99

Budget integration tests use:

  • Unique HouseholdId prefixes per test (90..., 91..., etc.)
  • Feature flags (Features:Budget, Features:BudgetItems)
  • Two factory types (BudgetTestWebApplicationFactory vs TestWebApplicationFactory)
  • JSON deserialization with PropertyNameCaseInsensitive
  • CreateIsolatedFactory pattern for isolation

When writing a new test, need to understand all these patterns. Not documented together.

Recommendation: Create TESTING.md or add to existing docs with example of a 'typical test' showing all the patterns in context.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    agent-exAgent/Copilot experience issues and learnings

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions