This skill provides a comprehensive framework for implementing high-quality testing in Go-based backend projects. It mandates a strict TDD workflow—Red, Green, Refactor—to ensure reliability and maintainability. It offers specialized guidance for unit tests, integration tests, and controller testing, including specific patterns for mocking database queries, verifying search functionality, and simulating various authentication states. By standardizing the use of table-driven tests and requiring 90% coverage, it helps developers build deterministic, isolated, and production-grade backend systems.
Key Features
01Mandatory Red-Green-Refactor TDD workflow enforcement
02Built-in authentication simulation for Admin and Account roles
03Standardized Go controller and HTTP handler test patterns
04Automated mocking for database queries and external APIs
05Table-driven test templates for comprehensive scenario coverage
060 GitHub stars