do-test

Generate unit and integration tests for Go backend services with Connect-RPC and gRPC.

1|Updated Mar 8, 2026
One-click install
npx skills add https://github.com/viqueen/claude-go-playground --skill do-test
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: do-test
Source: https://github.com/viqueen/claude-go-playground/tree/main/.claude/skills/do-test
Command: npx skills add https://github.com/viqueen/claude-go-playground --skill do-test

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill automates the generation of unit and integration tests for your Go backend services, ensuring code quality and reliability.

Core Features & Use Cases

  • Automated Test Generation: Creates boilerplate for API and domain-level tests.
  • Testcontainers Integration: Sets up necessary infrastructure like databases for integration tests.
  • Access Level Testing: Generates tests for different user roles (anonymous, standard, admin, elevated).
  • Use Case: After implementing a new API endpoint, use this Skill to quickly generate a full suite of tests covering error conditions, success scenarios, and various access levels, significantly speeding up the development cycle.

Quick Start

Use the do-test skill to add tests for the content domain in the connect-rpc-backend project.

Frequently Asked Questions about do-test

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate comprehensive Go backend tests for Connect-RPC and gRPC handlers?

Generate Go backend tests by creating boilerplate for API handlers and domain logic across Connect-RPC and gRPC frameworks. This automated test generation covers error conditions, success scenarios, and various access levels to ensure code reliability.

How do I set up database integration tests in Go using testcontainers?

Set up database integration tests in Go by utilizing testcontainers to provision necessary infrastructure. This approach spins up isolated database instances during test execution, validating domain logic against real data stores without manual setup.

What patterns should I follow to write maintainable Go unit and integration tests?

Follow specific testing patterns for maintainability and clarity by structuring tests around API handlers and domain logic. Adhering to these patterns ensures generated unit and integration tests remain readable and easy to modify.

Can I automate integration test generation for Go services with different user permissions?

Automate integration test generation for Go services by defining tests across multiple access levels including anonymous, standard, admin, and elevated roles. This covers various user permissions, validating API authorization rules comprehensively.

What's the best way to cover error conditions and success scenarios when testing Go API endpoints?

Cover error conditions and success scenarios by generating a full test suite for Go API endpoints. This automated approach creates boilerplate tests that validate both expected outcomes and failure paths across different access levels.