encore-go-testing

Run Encore Go tests for APIs, databases, and pub/sub flows.

26|5|Updated Jan 8, 2026
One-click install
npx skills add https://github.com/encoredev/skills --skill encore-go-testing
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: encore-go-testing
Source: https://github.com/encoredev/skills/tree/main/encore/go-testing
Command: npx skills add https://github.com/encoredev/skills --skill encore-go-testing

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Go projects built with Encore require a reliable, repeatable way to validate APIs, services, databases, and messaging across environments. This skill provides a structured testing workflow that exercises real infrastructure using Encore's testing tooling.

Core Features & Use Cases

  • End-to-end testing of Go services powered by Encore, including API endpoints, data persistence, and Pub/Sub flows.
  • Integration with Encore test to provision and isolate infrastructure for each test scenario.
  • Supports table-driven tests and common Go testing patterns to validate behavior across packages.

Quick Start

Run encore test to execute all tests in your Encore Go project.

Frequently Asked Questions about encore-go-testing

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

FAQPage Schema
How do I run end-to-end tests for a Go API built with Encore?

End-to-end testing for Encore Go APIs is executed using the `encore test` command. This provisions real infrastructure for each test scenario, validating API endpoints, database-backed operations, and Pub/Sub flows across multiple packages and environments.

Does Encore testing isolate database and Pub/Sub infrastructure for each Go test?

Encore testing isolates infrastructure for each test scenario by provisioning real databases and messaging systems. This ensures repeatable validation of Go services, database-backed operations, and Pub/Sub interactions without cross-test interference.

Can I use standard Go table-driven tests with Encore services?

Standard Go table-driven tests are fully supported with Encore services. The Encore testing tooling integrates with standard `go test` conventions, allowing you to validate behavior across multiple packages and environments using table-driven testing patterns.

Do I need the Encore Go tooling to test Encore APIs and services?

The Encore Go tooling is required to test Encore APIs and services. It provides access to the real infrastructure for databases and messaging needed to execute comprehensive tests during standard `go test` operations.

What is the best way to test Pub/Sub interactions in a Go application?

Testing Pub/Sub interactions in Go applications is handled by Encore's testing tooling. It provisions real messaging infrastructure during tests, allowing you to validate Pub/Sub flows across different packages and environments reliably.