kotest

Write and modernize Kotlin tests using Kotest matchers and idiomatic style.

135|25|Updated Feb 20, 2026
One-click install
npx skills add https://github.com/jvm-skills/jvm-skills --skill kotest-jvm-skills
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: kotest
Source: https://github.com/jvm-skills/jvm-skills/tree/main/.junie/skills/kotest
Command: npx skills add https://github.com/jvm-skills/jvm-skills --skill kotest-jvm-skills

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Kotest provides modern, idiomatic Kotlin testing patterns; this skill helps teams produce tests that use Kotest matchers, backticked names, and concise assertions, reducing boilerplate and improving readability.

Core Features & Use Cases

  • Create — write a new Kotest-based test for described behavior using idiomatic Kotest style and existing factories/helpers.
  • Modernize — rewrite an existing Kotlin test to Kotest + idiomatic style, preserving semantics and aligning with project patterns.
  • Follow project overlay and exercise minimal infra; run focused tests with the project's single-test command.

Quick Start

Describe the target behavior and choose Create to add a new Kotest test or Modernize to rewrite an existing Kotlin test.

Frequently Asked Questions about kotest

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I write idiomatic Kotlin tests using Kotest matchers?

Idiomatic Kotlin tests with Kotest matchers use concise assertions and backticked names to reduce boilerplate. This skill helps apply those patterns, leveraging existing factories and test helpers to improve readability while preserving production behavior.

What is the best way to migrate existing Kotlin tests to Kotest?

Migrating existing Kotlin tests to Kotest involves rewriting them with Kotest matchers and idiomatic style while preserving test semantics. This modernizes test suites by aligning with project patterns and overlay configurations without modifying production code.

Can I use object mothers and test helpers when creating new Kotest tests?

Yes, creating new Kotest tests supports using object mothers and existing test helpers. This approach maintains consistency with current project infrastructure and ensures new tests follow established, idiomatic Kotlin testing patterns.

Does this approach modify production code during Kotlin test modernization?

No, modernizing Kotlin tests with Kotest does not modify production code. Changes stay strictly within test scope, ensuring production behavior is preserved and only test files are updated to follow the project overlay.

Do I need existing test infrastructure to run focused Kotest tests?

Yes, running focused Kotest tests requires available test infrastructure. The skill exercises minimal infrastructure and uses the project's single-test command to validate changes without altering the underlying production environment.