Hiking-Logbook

Testing Strategy - Hiking Logbook

This document describes the testing approach for the Hiking Logbook Project, covering test plan, methodologies, and how test results are recorded.

Test Plan

The goal of our testing strategy is to ensure that all components of the Hiking Logbook application (frontend and backend) work correctly, reliably, and as expected. Our test plan covers:

Test Objectives:

  1. Ensure reliability and correctness of backend APIs and frontend components.
  2. Catch bugs early through automated unit and integration tests.
  3. Verify that all core features (signup, login, hike tracking, profile management) function as expected.
  4. Ensure performance, reliability, and usability meet expectations.

Responsibilities


Testing Approach

  1. Unit Testing

    Backend:

    • Framework: Jest
    • Scope:
    • Test controllers and services in isolation.
    • Tests cover individual functions (e.g., authentication, data validation).
    • Run with: cd backend npm run test

Frontend:

  1. Integration Testing

    Backend:

    • Test API endpoints with Jest.
    • Verify database interactions and response correctness.

Frontend:

  1. Test Coverage

    Test Coverage

    • Backend: npm run test:coverage generates a coverage report.
    • Frontend: Coverage enabled with –coverage. Goal: ≥ 80% coverage on both backend and frontend.
  2. Continuous Integration All PRs must pass:
    • npm run lint
    • npm run format:check
    • npm test

Test Records

We will maintain a Test Records Log in this document to track test results. Each test cycle will include test case ID, description, status, and remarks.