Skip to content

Comprehensive test coverage #28

@elias-ba

Description

@elias-ba

Summary

Build a robust test suite to ensure reliability and enable confident refactoring.

Test Categories

Unit Tests

  • Resolution strategy calculations
  • Vote aggregation logic
  • Rule evaluation engine
  • Area/expert matching

Context Tests

  • Teams context (create, invite, join)
  • Sprints context (create, activate, complete)
  • Stories context (create, vote, resolve)
  • Users context (auth, settings)

LiveView Tests

  • Voting UI interactions
  • Sprint dashboard
  • Team settings
  • Real-time updates

Integration Tests

  • Full voting flow
  • GitHub import flow
  • Slack notification flow

Test Helpers

```elixir

test/support/fixtures/teams_fixtures.ex

defmodule Estim.TeamsFixtures do
def team_fixture(attrs \ %{}) do
# ...
end

def sprint_fixture(team, attrs \ %{}) do
# ...
end
end
```

Coverage Goals

  • 80%+ line coverage
  • 100% coverage on resolution logic
  • All happy paths tested
  • Edge cases documented and tested

Acceptance Criteria

  • Tests pass in CI
  • Coverage report generated
  • Critical paths fully tested

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions