Toolverse
All skills

test-gen

by phodal

Generate comprehensive unit tests for code files

Installation

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

Installation

Quick info

Author
phodal
Category
Testing
Views
7

About this skill

Generate comprehensive unit tests for code files

How to use

  1. Zainstaluj skill test-gen w swoim środowisku agenta (np. w AutoDev lub kompatybilnym narzędziu wspierającym skills). Skill jest dostępny w repozytorium phodal/auto-dev.

  2. Wskaż plik kodu, dla którego chcesz wygenerować testy. Możesz przekazać ścieżkę do pliku lub zawartość kodu bezpośrednio w żądaniu.

  3. Uruchom skill, przekazując plik jako argument. Skill przeanalizuje strukturę kodu i zidentyfikuje komponenty do testowania (konstruktory, metody, obsługa błędów).

  4. Skill wygeneruje zestaw testów jednostkowych dla wszystkich zidentyfikowanych elementów. Testy będą zawierać przypadki pozytywne (happy path), przypadki brzegowe oraz scenariusze błędów.

  5. Przejrzyj wygenerowane testy i dostosuj je do swoich potrzeb. Każdy test będzie miał opisową nazwę i będzie niezależny od innych testów.

  6. Zintegruj wygenerowane testy z projektem, dodając je do odpowiedniego katalogu testów. Uruchom testy, aby upewnić się, że działają poprawnie z Twoim kodem.

Related skills

code-reviewer

by google-gemini

Use this skill to review code. It supports both local changes (staged or working tree) and remote Pull Requests (by ID or URL). It focuses on correctness, maintainability, and adherence to project standards.

Testing
1248

playwright-cli

by microsoft

Automates browser interactions for web testing, form filling, screenshots, and data extraction. Use when the user needs to navigate websites, interact with web pages, fill forms, take screenshots, test web applications, or extract information from web pages.

Testing
45103

dependency-upgrade

by wshobson

Manage major dependency version upgrades with compatibility analysis, staged rollout, and comprehensive testing. Use when upgrading framework versions, updating major dependencies, or managing breaking changes in libraries.

Testing
17138

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

differential-review

by trailofbits

Performs security-focused differential review of code changes (PRs, commits, diffs). Adapts analysis depth to codebase size, uses git history for context, calculates blast radius, checks test coverage, and generates comprehensive markdown reports. Automatically detects and

Testing
2510

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