pluginagentmarketplace/custom-plugin-kotlin

kotlin-testing

Kotlin testing - JUnit 5, MockK, Kotest, coroutine testing

First seen Jan 25, 2026

Installation

$ npx skills add pluginagentmarketplace/custom-plugin-kotlin --skill kotlin-testing

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from pluginagentmarketplace/custom-plugin-kotlin · top by installs.

npx skills add pluginagentmarketplace/custom-plugin-kotlin

Browse all from pluginagentmarketplace/custom-plugin-kotlin

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Also listed on

Alternate registries and mirrors of this skill.

Repository health

Stars 7
License LICENSE
Default branch main
Open issues 1
Status Active

Skill metadata

Parsed from SKILL.md frontmatter.

Version1.0.0

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 2,094 B
  • docs SUMMARY.md 80 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 34 installs

SKILL.md

Kotlin Testing Skill

Comprehensive testing with JUnit 5, MockK, and coroutine testing.

Topics Covered

MockK

class UserServiceTest {
    private val repository: UserRepository = mockk()
    private val service = UserService(repository)

    @Test
    fun `createUser saves and returns`() {
        every { repository.save(any()) } returns User(1, "[email protected]")

        val result = service.create(CreateUserRequest("[email protected]"))

        assertThat(result.id).isEqualTo(1)
        verify(exactly = 1) { repository.save(any()) }
    }
}

Coroutine Testing

@Test
fun `loadUser emits states`() = runTest {
    coEvery { repository.getUser(1) } returns Result.success(user)

    viewModel.state.test {
        viewModel.load(1)
        assertThat(awaitItem().isLoading).isTrue()
        advanceUntilIdle()
        assertThat(awaitItem().user).isEqualTo(user)
    }
}

Compose Testing

@Test
fun `button enabled when fields filled`() {
    composeTestRule.setContent { LoginScreen() }
    composeTestRule.onNodeWithTag("email").performTextInput("[email protected]")
    composeTestRule.onNodeWithTag("password").performTextInput("pass")
    composeTestRule.onNodeWithTag("login_button").assertIsEnabled()
}

Troubleshooting

Issue Resolution
"no answer found" Add every { } returns for method
Test hangs Inject TestDispatcher, use advanceUntilIdle()

Usage

Skill("kotlin-testing")