unit-testing-kotlin

Community

Produce robust Kotlin unit tests fast

AuthorAstrumon
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill helps developers write clear, reliable unit tests for Kotlin codebases, reducing regressions and improving confidence when refactoring and adding features.

Core Features & Use Cases

  • Framework guidance: Provides idiomatic patterns and examples for JUnit 5, MockK, and Kotest.
  • Coroutine testing: Recommends runTest, coEvery/coVerify, and strategies for testing suspending functions and asynchronous behavior.
  • Project rules & structure: Promotes the Arrange-Act-Assert pattern, backtick test names, clearing mocks between tests, and avoiding real database connections in unit tests.
  • Use Case: Writing service and repository unit tests, implementing TDD for new features, and documenting expected behavior through tests.

Quick Start

Generate unit tests for UserService.findByTelegramId using JUnit 5, MockK, the AAA pattern, and runTest for suspending functions.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: unit-testing-kotlin
Download link: https://github.com/Astrumon/Spovishun/archive/main.zip#unit-testing-kotlin

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.