gin-testing

Installation
SKILL.md

gin-testing — Testing REST APIs

Write confident tests for Gin APIs: unit tests with mocked repositories, integration tests with real PostgreSQL via testcontainers, and e2e tests for critical flows. This skill covers the 80% of testing patterns you need daily.

When to Use

  • Writing tests for Gin handlers (UserHandler, AuthHandler)
  • Testing services with a mocked UserRepository
  • Setting up integration tests with a real database (testcontainers)
  • Testing JWT auth middleware in isolation
  • Adding table-driven tests for request validation and error paths
  • Setting up TestMain for shared test infrastructure

Table of Contents

Related skills
Installs
2
GitHub Stars
2
First Seen
Mar 1, 2026