-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
Description
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
Reactions are currently unavailable