
golang-testing
Go testing patterns including table-driven tests, subtests, benchmarks, fuzzing
by affaan-mFree
Description
golang-testing is an agent skill from the ECC collection by affaan-m, listed on skills.sh. It sets out Go testing patterns for reliable, maintainable tests, following a TDD method with idiomatic Go practice. Its topics include table-driven tests, subtests, benchmarks for performance-critical code, fuzz tests for input validation and test coverage. The skill describes a red, green, refactor workflow for Go, in which a failing test is written first, then the minimum code to pass it, and then the code is cleaned up. It applies when writing new Go functions or methods, adding coverage to existing code, creating benchmarks, adding fuzz tests, or working in a Go project that follows TDD. Because it is a SKILL.md file of instructions, the agent loads it for those tasks and applies the same structure to its tests. It is free and open source, and the skills.sh listing shows all three security audits passing.…
Highlights
- Table-driven tests and subtests
- Benchmarks and fuzz tests
- Red, green, refactor for Go
- Coverage for existing code
Ratings & Reviews
No ratings yet
Be the first to rate golang-testing.
People also visit
golang-testing FAQ
What does the golang-testing skill do?
It guides an agent in writing Go tests using table-driven tests, subtests, benchmarks, fuzzing and coverage, following a TDD workflow.
What is the TDD workflow it uses?
Red, green, refactor: write a failing test, write code to pass it, then refactor.
Does it cover fuzzing?
Yes. Fuzz tests for input validation are one of its listed uses.
How do I install it?
Run: npx skills add https://github.com/affaan-m/ecc --skill golang-testing
Is it free?
Yes. It is free and open source.
Are there security findings?
The skills.sh listing shows Gen Agent Trust Hub, Socket and Snyk all passing.
What are the best golang-testing alternatives?
Popular alternatives to golang-testing include tdd, django-tdd and golang-patterns. See all golang-testing alternatives


