karibulab/coding-agents · Archived

go-mockery

Blueprint and good practices to implement unit tests using Mockery Golang Library.

First seen Mar 10, 2026

Installation

$ npx skills add karibulab/coding-agents --skill go-mockery

Stronger alternatives

This repository is archived — consider an actively maintained alternative.

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from karibulab/coding-agents.

npx skills add karibulab/coding-agents

Browse all from karibulab/coding-agents

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Repository health

License LICENSE
Default branch main
Open issues 0
Status Archived

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 1,060 B
  • docs SUMMARY.md 100 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 1 installs

SKILL.md

go-mockery

  1. Install mockery dependency if not exists: go get github.com/vektra/mockery.
  2. Install testify if not already installed: github.com/stretchr/testify.

When to use

I you need implement tests in golang with mocking features.

Instructions

  1. Create mocks of required interfaces using a mockery configuration file and the command mockery. See the example for more information: references/examples/.mockery.yaml.
  2. Create tests using mocks and testify. See the example for more information: references/examples/main_test.go.
  3. Run tests to check if all it's working good.

References

See more information here

  • Mockery configuration example in references/examples/.mockery.yaml.
  • Test example using mockery generated code in references/examples/main_test.go.
  • Mockery official documentation in markdown:

- https://raw.githubusercontent.com/vektra/mockery/refs/heads/v3/docs/configuration.md