Toolverse
All skills

test-generator

by alirezarezvani

Automatically suggest tests for new functions and components. Use when new code is written, functions added, or user mentions testing. Creates test scaffolding with Jest, Vitest, Pytest patterns. Triggers on new functions, components, test requests, testing mentions.

Installation

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

Installation

Quick info

Category
Testing

About this skill

Automatically suggest tests for new functions and components. Use when new code is written, functions added, or user mentions testing. Creates test scaffolding with Jest, Vitest, Pytest patterns. Triggers on new functions, components, test requests, testing mentions.

How to use

  1. Zainstaluj skill test-generator w swoim środowisku Claude. Skill automatycznie aktywuje się, gdy napiszesz nową funkcję lub komponent, albo gdy wspomniisz o testowaniu.

  2. Napisz funkcję lub komponent w normalny sposób. Skill monitoruje Twój kod i wykrywa nowe definicje funkcji oraz komponenty.

  3. Skill automatycznie zasugeruje podstawowy szkielet testów w składni odpowiedniej dla Twojego projektu (Jest dla JavaScript/TypeScript, Vitest dla nowoczesnych projektów, Pytest dla Pythona). Przejrzyj wygenerowany kod – zawiera testy happy path, obsługę wartości null/undefined oraz proste scenariusze błędów.

  4. Dostosuj wygenerowane testy do swoich potrzeb – dodaj więcej przypadków brzegowych, zmień asercje lub rozszerz logikę testową.

  5. Jeśli potrzebujesz pełnej strategii testowania, testów integracyjnych lub end-to-end, przekaż zadanie agentowi @test-engineer, który specjalizuje się w zaawansowanym pokryciu testami.

Related skills