npx skills add affaan-m/ecc --skill kotlin-testing
pluginagentmarketplace/custom-plugin-kotlin
kotlin-testing
Kotlin testing - JUnit 5, MockK, Kotest, coroutine testing
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.
Browser automation CLI for AI agents. Use when the user needs to interact with websites, includ…
810.4K installsConfigure Azure API Management as an AI Gateway for AI models, MCP tools, and agents. WHEN: sem…
566.3K installsAzure VM/VMSS router. WHEN: create / provision / deploy / spin-up VM, recommend VM size, compar…
510K installsPostgres best practices maintained by Supabase, for Postgres running anywhere. Load this skill …
391.6K installsPrisma ORM CLI commands reference covering init, generate, migrate, db, dev, complete, studio, …
267K installsUse when doing ANY task involving Supabase. Triggers: Supabase products (Database, Auth, Edge F…
263K installsAlso in this package
Other skills from pluginagentmarketplace/custom-plugin-kotlin · top by installs.
npx skills add 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.
Also listed on
Alternate registries and mirrors of this skill.
Repository health
main
Skill metadata
Parsed from SKILL.md frontmatter.
Package contents
Files included with this skill beyond the listing page.
-
skill md
SKILL.md2,094 B -
docs
SUMMARY.md80 B
History
- First seen on skills.sh
- 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")