kotest-fundamentals

Apply Kotest fundamentals to unit and property tests in Kotlin multiplatform projects.

Updated Feb 20, 2026
One-click install
npx skills add https://github.com/KrystianYCSilva/math-theory-lib --skill kotest-fundamentals
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: kotest-fundamentals
Source: https://github.com/KrystianYCSilva/math-theory-lib/tree/main/.codex/skills/kotest-fundamentals
Command: npx skills add https://github.com/KrystianYCSilva/math-theory-lib --skill kotest-fundamentals

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Guidelines and quick references for writing unit and property tests with Kotest in Kotlin multiplatform projects.

Core Features & Use Cases

  • Test styles: StringSpec, FunSpec, BehaviorSpec for clear, readable tests across multiplatform targets.
  • Matchers and assertions: shouldBe, shouldContain, and other Kotest matchers for expressive tests.
  • Coroutine and property testing: patterns for testing suspending code and property-based scenarios.

Quick Start

Start by configuring Kotest in your Kotlin multiplatform project and writing tests with FunSpec or StringSpec for clear, readable tests.

Frequently Asked Questions about kotest-fundamentals

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

FAQPage Schema
How do I write unit tests for Kotlin multiplatform projects using Kotest?

To write Kotlin multiplatform unit tests with Kotest, configure the framework in your project and use styles like StringSpec or FunSpec to structure tests, applying matchers such as shouldBe for assertions across multiplatform targets.

What is the difference between StringSpec, FunSpec, and BehaviorSpec in Kotest?

StringSpec, FunSpec, and BehaviorSpec are Kotest test styles that enforce clear guidance on test structure. They allow developers to choose the most readable format for their unit and property tests in Kotlin multiplatform projects.

How do I test suspending coroutines with Kotest?

Kotest provides specific coroutine testing patterns for testing suspending code in Kotlin. These patterns integrate directly with your chosen test style to validate asynchronous behavior in multiplatform projects.

Can I use property-based testing with Kotest in Kotlin multiplatform?

Yes, Kotest supports property-based testing in Kotlin multiplatform projects. It provides specific patterns and assertion APIs to generate and validate property tests across various multiplatform targets.

What are the best matchers for expressive assertions in Kotest?

Kotest offers expressive matchers like shouldBe and shouldContain for writing unit and property tests. These assertion APIs enforce clear guidance to make test validations highly readable across multiplatform projects.