Skip to main content

API Service Testing

SDD Classification: L3-Technical Authority: Engineering Team Review Cycle: Quarterly
This document describes the testing strategy and practices for Materi’s API Service, including unit tests, integration tests, and end-to-end testing.

Testing Strategy

Coverage Targets


Unit Testing

Test Structure

Table-Driven Tests

Mock Generation


Integration Testing

Database Integration Tests

Redis Integration Tests


HTTP Controller Testing

Handler Tests

Middleware Tests


End-to-End Testing

E2E Test Setup

E2E Test Cases


Test Configuration

Test Environment

Test Fixtures


Running Tests

Commands

CI Configuration



Document Status: Complete Version: 2.0