# Go Testing

> Handles all Golang testing tasks including running tests, writing new tests, and fixing test failures. Follows MCPSpy testing conventions with require for critical assertions and assert for non-critical ones.

- Skill: `tomevault-io/go-testing-3` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add tomevault-io/go-testing-3`
- Raw SKILL.md: https://api.skillmd.com/api/skills/tomevault-io/go-testing-3/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: tomevault-io (https://skillmd.com/u/tomevault-io)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/tomevault-io/go-testing-3

---


# Go Testing Skill

Provides guidance and automation for Golang testing tasks in the MCPSpy project.

## Testing Philosophy

- Use `require` library for assertions that should stop test execution on failure
- Use `assert` library for non-critical assertions where test should continue
- Choose internal vs external package testing based on what needs to be tested
- Test internal functions by placing test files in the same package (no `_test` suffix)
- Avoid creating externally facing functions solely for testing purposes

## When to Use This Skill

- Running unit tests with `go test`
- Writing new test files and test cases
- Debugging and fixing failing tests
- Implementing test fixtures and mocks
- Improving test coverage for the MCPSpy project

---
> Converted and distributed by [TomeVault](https://tomevault.io/claim/alex-ilgayev) — claim your Tome and manage your conversions.
<!-- tomevault:4.0:skill_md:2026-04-11 -->

