Toolverse
All skills

create-unit-test

by AnySoftKeyboard

Create and run unit tests following the project's architecture and guidelines (Robolectric, naming, location).

Installation

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

Installation

Quick info

Category
Testing
Views
5

About this skill

Create and run unit tests following the project's architecture and guidelines (Robolectric, naming, location).

How to use

  1. Wskaż kod, który chcesz przetestować. Umiejętność przeanalizuje strukturę klasy i zidentyfikuje kluczowe ścieżki testowe — funkcjonalność główną (happy path) oraz przypadki błędów i brzegowe.

  2. Umiejętność zaproponuje plan testów opisując zachowanie bez wchodzenia w szczegóły implementacji, chyba że go poprosisz. Zaakceptuj plan lub wskaż, które scenariusze chcesz zmienić.

  3. Umiejętność wygeneruje plik testowy w Kotlin z nazwą [NazwaKlasy]Test.kt umieszczony w [moduł]/src/test/java/[ścieżka/pakietu]/. Dla komponentów Android automatycznie zastosuje Robolectric jako runner testów. Testy będą pisane w schemacie Arrange-Act-Assert.

  4. Uruchom testy poleceniem ./gradlew :[moduł]:testDebugUnitTest (np. ./gradlew :database:testDebugUnitTest). Przed każdym commitem uruchom ./gradlew testDebugUnitTest aby sprawdzić, czy wszystkie testy przechodzą.

  5. Jeśli test nie przejdzie, umiejętność pomoże zlokalizować raport błędu w [moduł]/build/test-results/testDebugUnitTest/TEST-[pakiet.nazwa.TestClassName].xml i zaproponuje poprawki.

Related skills

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

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

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

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

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