Skip to content

Test Plan & Coverage

Ahmet Erdem Bulut edited this page Mar 26, 2026 · 4 revisions

Test Plan — MVP

1. Testing Strategy

We will use a lightweight but effective multi-layer testing approach.

2.1 Unit Testing

Unit tests will validate isolated logic and core business rules.

Scope

  • Input validation (empty fields, invalid values)
  • Vote logic (upvote/downvote switching)
  • Help request status transitions
  • Data formatting and mapping
  • Expertise creation logic (restricted to expert users)
  • Resource creation and validation
  • Role-based permission checks (expert vs standard user)

Purpose

  • Catch logic bugs early
  • Prevent regressions
  • Keep tests fast and reliable

2.2 Integration Testing

Integration tests will verify that system components work correctly together.

Scope

  • Frontend ↔ backend communication
  • Backend ↔ database interactions
  • Authentication and authorization
  • Forum flows (post → comment → vote)
  • Help request flows (create → respond → update status)
  • Profile retrieval and update flows
  • Adding resources to user profile
  • Adding expertises (expert users only)
  • Role-based access enforcement (standard vs expert users)

Purpose

  • Ensure correct data flow across the system
  • Detect issues in real interactions between components

2.3 End-to-End Testing

End-to-end (E2E) tests will validate complete user journeys.

Scope (critical flows only)

  • User registers → selects hub → enters forum
  • User creates a post → sees it in forum
  • User opens post → comments → votes
  • User creates help request → another user responds
  • User views and updates profile
  • Expert user adds expertise and sees it reflected in profile
  • User adds resources and verifies they are displayed

Purpose

  • Ensure the system works as a whole
  • Validate real user behavior

2.4 Manual / Exploratory Testing

Manual testing will be used to evaluate usability and edge cases.

Scope

  • Navigation between screens (Android & web)
  • UI responsiveness and layout
  • Error states and feedback
  • Unexpected user behavior
  • Slow or unstable network conditions

Purpose

  • Catch usability issues
  • Identify real-world problems not covered by automation

2.5 API Testing (Lightweight)

API testing will validate backend endpoints directly.

Scope

  • Request/response correctness
  • Status codes
  • Validation errors
  • Authentication behavior
  • Profile endpoints (get/update profile)
  • Resource creation endpoints
  • Expertise creation endpoints (with role validation)

Purpose

  • Ensure backend reliability
  • Support integration testing

2.6 Test Tools and Frameworks

Layer Tool
Backend unit & integration Django TestCase + DRF APIClient
Android unit JUnit 4
Android UI Espresso / Compose Test
React unit & integration Jest + React Testing Library
API testing Postman (manual) + Django test client (automated)

3. Test Plan Coverage

Testing will focus on validating user value, not just technical correctness.

Covered Areas

Forum

  • Viewing posts (Standard / Urgent)
  • Creating posts
  • Viewing post details
  • Commenting on posts
  • Voting (upvote/downvote)
  • Reporting content

Help Requests

  • Creating help requests
  • Viewing active requests
  • Responding to requests
  • Updating request status (open, in progress, resolved)
  • Handling location and optional medical information

Authentication & User Context

  • Registration with hub selection
  • Access control for actions (edit/delete)

Profile Page

  • Viewing user profile
  • Editing profile information
  • Adding resources to profile
  • Adding expertises (expert users only)
  • Displaying user-specific data correctly

Notifications

  • Receiving urgent notifications (FCM)
  • Deep linking to relevant content

UI/UX

  • Navigation across screens
  • Mobile responsiveness (Android focus)
  • Empty states and error handling

4. User Acceptance Criteria

The MVP will be considered successful if users can complete core tasks easily and reliably.

Core Criteria

  • Users can complete the main workflows without assistance
  • The system behaves consistently and predictably
  • Errors are handled clearly and do not block progress
  • The interface is understandable for first-time users
  • Performance is acceptable for normal usage
  • No critical bugs block core functionality

5. MVP Acceptability Criteria (User Perspective)

The MVP is acceptable when:

  • The primary use cases (forum and help requests) work end-to-end
  • Users can create, view, and interact with content without failure
  • Core features provide value compared to not having the product
  • The experience is usable without training
  • There are no major trust-breaking issues (e.g., lost data, incorrect results)
  • Minor UX issues may exist but do not block task completion

6. Required Scenarios (Must Pass)

The MVP must successfully handle the following scenarios:

6.1 Happy Path

  • User registers, enters forum, creates a post, and sees it listed

6.2 First-Time User

  • A new user can navigate and use the app without prior instruction

6.3 Profile Management Flow

  • User views their profile
  • User adds a resource and sees it listed
  • Expert user adds expertise
  • Role restrictions are enforced correctly

6.4 Post Interaction

  • User opens a post, comments, and votes successfully

6.5 Help Request Flow

  • User creates a help request
  • Another user responds
  • Request status is updated correctly

6.6 Error Handling

  • Invalid inputs are rejected with clear feedback
  • API failures do not crash the app

6.7 Authorization

  • Users can only edit/delete their own content
  • Unauthorized actions are blocked

6.8 Edge Cases

  • Empty states (no posts, no requests)
  • Duplicate actions (double submit)
  • Missing or partial data

6.9 Notifications

  • User receives urgent notification
  • Tapping notification opens correct screen

6.10 Offline Access

  • Emergency numbers and first aid information should be accessible in offline mode through the mobile app.
  • Gathering points near the users last saved location should be visible on a map.

7. Exit Criteria

Testing is considered complete when:

  • All critical user flows pass
  • No high-severity bugs remain
  • Core features are stable and usable
  • Known issues are documented and accepted
  • The MVP delivers enough value to justify release

8. Summary

This test plan prioritizes:

  • Integration over isolation
  • User flows over technical perfection
  • Speed and practicality over completeness

The focus is to ensure the product works for real users, not just in theory.

Clone this wiki locally