api-integration-test

Run opt-in integration tests for internal HTTP and gRPC APIs.

29|5|Updated Mar 13, 2026
One-click install
npx skills add https://github.com/johnqtcg/awesome-skills --skill api-integration-test-johnqtcg
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: api-integration-test
Source: https://github.com/johnqtcg/awesome-skills/tree/main/skills/api-integration-test
Command: npx skills add https://github.com/johnqtcg/awesome-skills --skill api-integration-test-johnqtcg

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Build production-representative, opt-in integration tests for internal APIs (HTTP/gRPC) with real runtime config, ensuring reproducible runs and clear failure diagnosis.

Core Features & Use Cases

  • Scope: Internal HTTP API tests, internal gRPC client/server tests, and service-to-service adapters requiring real runtime config.
  • Safety and gates: Serial gate-driven workflow with defined gates, environment validation, and production-safety checks to prevent accidental production runs.
  • Validation: Endpoint contract verification against real responses and structured failure triage to support debugging.

Quick Start

Run the integration tests by exporting INTERNAL_API_INTEGRATION=1, setting ENV and API_BASE_URL, and executing go test -tags=integration ./...

Frequently Asked Questions about api-integration-test

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

FAQPage Schema
How do I write production-grade integration tests for internal gRPC and HTTP APIs?

Production-grade integration tests for internal HTTP and gRPC APIs use real runtime configuration to verify endpoint contracts. They enforce gate-based control, environment safety, and deterministic execution for reproducible runs and clear failure diagnosis.

How can I prevent integration tests from accidentally executing against my production environment?

To prevent accidental production runs, integration tests enforce serial gate-driven workflows with environment validation and production-safety checks. This opt-in execution requires explicitly exporting specific environment variables before tests can run.

What is the best way to verify service-to-service adapter contracts using real runtime config?

The best way to verify service-to-service adapter contracts is using integration tests that validate real responses against defined endpoint contracts. This approach applies real runtime config to ensure the tests accurately represent production behavior.

How do I run opt-in integration tests for internal APIs in Go?

To run opt-in integration tests for internal APIs in Go, export INTERNAL_API_INTEGRATION=1, set the necessary ENV and API_BASE_URL variables, and execute the command go test -tags=integration ./... to trigger the gate-driven workflow.

Why do my internal API integration tests fail with non-deterministic results?

Internal API integration tests fail with non-deterministic results when they lack deterministic execution and real runtime configuration. Applying gate-based control and structured failure triage ensures reproducible runs and clear diagnosis of endpoint contract issues.