Skip to content

Test Strategy and Defect Management

This document defines the testing approach and quality standards for the "My Roadmap" project.

1. Testing Strategy

We follow the testing pyramid approach, prioritizing unit and integration tests for speed and reliability.

1.1 Testing Levels

LevelScopeToolsFrequency
Unit TestPure functions, individual hooks, utility logicVitestEvery PR / Local dev
Component TestUI components (shadcn/ui), form interactionsVitest + React Testing LibraryEvery PR / Local dev
Integration TestAmplify GraphQL API, Auth flowsManual (Amplify Sandbox)Major feature updates
E2E TestFull user journeysPlaywright (Future)Post-MVP

1.2 Responsibilities

  • Developers: Responsible for writing unit and component tests for every new feature.
  • AI Agent: Responsible for maintaining test infrastructure and generating initial test boilerplate.

2. Defect Management

2.1 Issue Tracking

  • All bugs must be reported as GitHub Issues with the bug label.
  • Reports should include:
    • Steps to reproduce
    • Expected vs. Actual behavior
    • Environment details (Browser, OS)

2.2 Severity Levels

LevelDescriptionPriority
P0 (Critical)Core functionality broken (Auth, DB), Security leakImmediate Fix
P1 (High)Major feature broken, UI/UX severely impactedNext Sprint
P2 (Medium)Minor feature bug, edge case issuesAs scheduled
P3 (Low)Stylistic issues, minor typosBacklog

3. Tooling and Environment

Built with Next.js, AWS Amplify Gen 2, and VitePress