Toolverse
All skills

golang-testing

by affaan-m

Go测试模式包括表格驱动测试、子测试、基准测试、模糊测试和测试覆盖率。遵循TDD方法论,采用地道的Go实践。

Installation

Pick a client and clone the repository into its skills directory.

Installation

Quick info

Author
affaan-m
Category
Testing
Views
30

About this skill

Go测试模式包括表格驱动测试、子测试、基准测试、模糊测试和测试覆盖率。遵循TDD方法论,采用地道的Go实践。

How to use

  1. Aktywuj skill golang-testing w Claude lub Copilot, gdy pracujesz nad projektem Go — szczególnie gdy piszesz nowe funkcje lub dodajesz testy do istniejącego kodu.

  2. Zacznij od cyklu Red-Green-Refactor: najpierw napisz test, który nie przejdzie (RED), potem minimalny kod, aby test przeszedł (GREEN), a następnie refaktoryzuj, jeśli trzeba, upewniając się, że testy wciąż przechodzą.

  3. Używaj testów tabelarycznych (table-driven tests) do pokrycia wielu przypadków — pozytywnych, negatywnych, granicznych — w jednej funkcji testowej. Skill pokaże Ci strukturę z polami name, input i expected, którą łatwo rozszerzysz o nowe scenariusze.

  4. Dla kodu krytycznego pod względem wydajności utwórz benchmarki, a dla funkcji przetwarzających dane od użytkownika dodaj testy fuzzing — skill wyjaśni, kiedy każdy typ testu jest najbardziej przydatny.

  5. Po napisaniu testów uruchom go test, aby sprawdzić, czy przechodzą, i go test -cover, aby zmierzyć pokrycie kodu — skill przypomni Ci, kiedy pokrycie jest wystarczające.

  6. Wracaj do tego skilla za każdym razem, gdy piszesz nową funkcję lub refaktoryzujesz istniejący kod — TDD staje się naturalnym przepływem pracy.

Related skills

code-review-excellence

by wshobson

Master effective code review practices to provide constructive feedback, catch bugs early, and foster knowledge sharing while maintaining team morale. Use when reviewing pull requests, establishing review standards, or mentoring developers.

Testing
1145

nextjs-developer

by zenobi-us

Expert Next.js developer mastering Next.js 14+ with App Router and full-stack features. Specializes in server components, server actions, performance optimization, and production deployment with focus on building fast, SEO-friendly applications.

Testing
166226

hono

by openstatusHQ

Efficiently develop Hono applications using Hono CLI. Supports documentation search, API reference lookup, request testing, and bundle optimization.

Testing
1257

textual

by KyleKing

Expert guidance for building TUI (Text User Interface) applications with the Textual framework. Invoke when user asks about Textual development, TUI apps, widgets, screens, CSS styling, reactive programming, or testing Textual applications.

Testing
69192

backtesting-frameworks

by wshobson

Build robust backtesting systems for trading strategies with proper handling of look-ahead bias, survivorship bias, and transaction costs. Use when developing trading algorithms, validating strategies, or building backtesting infrastructure.

Testing
12105

testing-workflow

by amo-tech-ai

Comprehensive testing workflow for E2E, integration, and unit tests. Use when testing applications layer-by-layer, validating user journeys, or running test suites.

Testing
1076