---
title: "Go Testing"
description: "> This file extends the common testing rule with Go specific content."
type: skill
canonical_url: https://claudary.paisolsolutions.com/skills/golang-testing
source: "Claudary"
difficulty: intermediate
author: "Claude Code Knowledge Pack"
date: 2026-07-10T11:24:59.717Z
license: CC-BY-4.0
attribution: "Go Testing — Claudary (https://claudary.paisolsolutions.com/skills/golang-testing)"
---

# Go Testing
> This file extends the common testing rule with Go specific content.

## Overview

---
description: "Go testing extending common rules"
globs: ["**/*.go", "**/go.mod", "**/go.sum"]
alwaysApply: false
---
# Go Testing

> This file extends the common testing rule with Go specific content.

## Framework

Use the standard `go test` with **table-driven tests**.

## Race Detection

Always run with the `-race` flag:

```bash
go test -race ./...
```

## Coverage

```bash
go test -cover ./...
```

## Reference

See skill: `golang-testing` for detailed Go testing patterns and helpers.

---

Source: [Claudary](https://claudary.paisolsolutions.com/skills/golang-testing) · https://claudary.paisolsolutions.com
