Toolverse
All skills

tdd-workflow

by affaan-m

在编写新功能、修复错误或重构代码时使用此技能。强制执行测试驱动开发,包含单元测试、集成测试和端到端测试,覆盖率超过80%。

Installation

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

Installation

Quick info

Author
affaan-m
Category
Testing
Views
27

About this skill

在编写新功能、修复错误或重构代码时使用此技能。强制执行测试驱动开发,包含单元测试、集成测试和端到端测试,覆盖率超过80%。

How to use

  1. Zdefiniuj scenariusz użytkownika w formacie: "As a [rola], I want to [akcja], so that [korzyść]". Na przykład: "As a user, I want to search for markets semantically, so that I can find relevant markets even without exact keywords."

  2. Wygeneruj zestawu testów dla każdego scenariusza — napisz testy jednostkowe (dla funkcji i komponentów), integracyjne (dla endpointów API i operacji bazodanowych) oraz end-to-end (dla kluczowych przepływów użytkownika). Każdy test powinien obejmować przypadki graniczne i scenariusze błędów.

  3. Uruchom testy poleceniem npm test — powinny się nie powieść, ponieważ kod nie został jeszcze zaimplementowany. To jest oczekiwane zachowanie w TDD.

  4. Napisz minimalny kod potrzebny do przejścia testów. Skupiaj się na spełnieniu wymagań testów, nie na perfekcji implementacji.

  5. Uruchom testy ponownie — tym razem powinny przejść. Jeśli jakieś testy nie przechodzą, wróć do kroku 4 i popraw kod.

  6. Refaktoryzuj kod, zachowując przechodzące testy — usuń duplikaty, popraw nazwy zmiennych, zoptymalizuj wydajność i zwiększ czytelność.

  7. Zweryfikuj pokrycie testami poleceniem npm run test:coverage — upewnij się, że osiągnąłeś minimum 80% pokrycia kodu testami.

Related skills

webapp-testing

by anthropics

Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.

Testing
130255

ad-creative

by alirezarezvani

When the user needs to generate, iterate, or scale ad creative for paid advertising. Use when they say 'write ad copy,' 'generate headlines,' 'create ad variations,' 'bulk creative,' 'iterate on ads,' 'ad copy validation,' 'RSA headlines,' 'Meta ad copy,' 'LinkedIn ad,' or

Testing
2863

qa-tester

by svilupp

\

Testing
2399

langchain

by zechenzhangAGI

Framework for building LLM-powered applications with agents, chains, and RAG. Supports multiple providers (OpenAI, Anthropic, Google), 500+ integrations, ReAct agents, tool calling, memory management, and vector store retrieval. Use for building chatbots, question-answering

Testing
21123

performing-penetration-testing

by jeremylongshore

This skill enables automated penetration testing of web applications. It uses the penetration-tester plugin to identify vulnerabilities, including OWASP Top 10 threats, and suggests exploitation techniques. Use this skill when the user requests a \

Testing
1546

pair-trade-screener

by tradermonty

Statistical arbitrage tool for identifying and analyzing pair trading opportunities. Detects cointegrated stock pairs within sectors, analyzes spread behavior, calculates z-scores, and provides entry/exit recommendations for market-neutral strategies. Use when user requests pair

Testing
994