testing-go-code

Community

Run Go tests, coverage, and benchmarks.

AuthorMrPointer
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill streamlines the process of verifying the quality and performance of Go code by automating testing, coverage analysis, and benchmarking.

Core Features & Use Cases

  • Unit Tests: Execute all Go unit tests, including race detection and selective test runs.
  • Coverage Reports: Generate HTML reports detailing code coverage.
  • Benchmarking: Run performance benchmarks and analyze memory allocations.
  • Mock Generation: Automatically regenerate mock implementations for interfaces.
  • Use Case: After modifying an interface in your Go project, use this Skill to regenerate the necessary mock files and then run all tests to ensure the changes haven't introduced regressions.

Quick Start

Run all Go unit tests with race detection enabled.

Dependency Matrix

Required Modules

mockery

Components

scriptsreferences

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: testing-go-code
Download link: https://github.com/MrPointer/dotfiles/archive/main.zip#testing-go-code

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.