Back to directory

Writing Tests with Kotlin Test

Agent skill
1 skill

Use this skill to write tests with the kotlin.test library — the multiplatform assertion + annotation API that compiles the same in commonTest and on the JVM (JUnit4 or JUnit5), Android, JS, Native, and Wasm. Covers the kotlin.test annotations (@Test, @Ignore, @BeforeTest, @AfterTest) and how they typealias onto the underlying framework; the assert functions (assertEquals/assertNotEquals, assertSame, assertNull/assertNotNull, assertIs/assertIsNot, assertContentEquals, assertContains, assertTrue/assertFalse, fail, expect, assertFails, assertFailsWith); the @OnlyInputTypes compile-time type check; the Asserter/AsserterContributor/DefaultAsserter extension point that routes JVM failures to org.junit.Assert for clickable diffs; and the kotlin("test") capability that auto-selects JUnit4 vs JUnit5. Use when the user mentions kotlin.test, import kotlin.test., @BeforeTest, assertFailsWith, assertContentEquals, assertIs, or kotlin("test").

Install with
Claude CodeCodexCursorGitHub CopilotGemini CLI

Supported by the Atlas install prompt. Skill-specific requirements vary.

Skill stats

Skills1CategoryEngineeringStars0

About this skill

Use this skill to write tests with the kotlin.test library — the multiplatform assertion + annotation API that compiles the same in commonTest and on the JVM (JUnit4 or JUnit5), Android, JS, Native, and Wasm. Covers the kotlin.test annotations (@Test, @Ignore, @BeforeTest, @AfterTest) and how they typealias onto the underlying framework; the assert functions (assertEquals/assertNotEquals, assertSame, assertNull/assertNotNull, assertIs/assertIsNot, assertContentEquals, assertContains, assertTrue/assertFalse, fail, expect, assertFails, assertFailsWith); the @OnlyInputTypes compile-time type check; the Asserter/AsserterContributor/DefaultAsserter extension point that routes JVM failures to org.junit.Assert for clickable diffs; and the kotlin("test") capability that auto-selects JUnit4 vs JUnit5. Use when the user mentions kotlin.test, import kotlin.test., @BeforeTest, assertFailsWith, assertContentEquals, assertIs, or kotlin("test").

Quick start

  1. Copy the install prompt. Use the green button above this README.
  2. Send it to your agent. Paste it into your coding agent’s chat and send.
  3. Review the setup. Your agent checks the skill’s instructions, requirements, and installation scope.
Review, license & listing details
Review the source before using this skill

This is an imported listing. We haven’t certified its safety, license, or compatibility. Skills may include executable scripts.

Automated security scan: Partial

Only SKILL.md was scanned. Supporting files and scripts were not checked. No safety grade has been assigned.

0 potential findings · Scanned 11/4/2026 · Scanner 0.2.1

Content SHA-256: cfe88ca89ff7f99da382cfda8c9b6efd86f0a5a8107c75815199dfa480260a11

About scan coverage and limitations

About this listing

Category
Engineering
Reported license
Apache-2.0
Listing language (estimated)
English
Review status
Not individually reviewed
Agent compatibility
Atlas installation supports Claude Code, Codex, and Cursor. Skill-specific dependencies and features are checked during setup.
Writing Tests with Kotlin Test | Agent Skills Atlas