Ross ROSS = Recommend OSS · open-source software intelligence for agents

mockk/mockk

mocking library for Kotlin observed · 2026-08-28

github.com/mockk/mockk · homepage · Kotlin · Apache-2.0 (permissive) observed · 2026-08-28

Health v2 · maintenance only

89/100

  • Activity 96
  • Release rhythm 74
  • Longevity 100
How is this computed?

round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.

  • gap_med: 51.0
  • age_days: 3242
  • days_rel: 96
  • days_push: 25
  • n_releases_24m: 13

Full methodology

Adoption not part of the score

5757 stars · 415 forks observed · 2026-08-28

What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded

MockK is a mocking library for Kotlin providing a Kotlin-first DSL for creating mocks, stubbing behavior, and verifying calls. It supports coroutines, Android unit and instrumented tests, and BDD-style aliases.

Use cases

  • mock dependencies in Kotlin unit tests
  • stub and verify method calls with a Kotlin DSL
  • mock suspend functions and coroutines
  • write BDD-style tests in Kotlin
  • mock classes in Android instrumented tests
  • mock Spring beans in Spring Boot Kotlin apps

When to choose

  • you write Kotlin or Android tests and need idiomatic mocking
  • you need to mock coroutines, objects, or final classes
  • you want strict mocks with verification by default

When to avoid

  • you are writing pure Java projects (Mockito may fit better)
  • you need mocking outside the JVM ecosystem

Facets

library · maturity active

mocking testing testing developer-tools jvm kotlin mocking-framework tdd bdd verification argument-matchers coroutines android

2 sources

Member repositories

RepositoryRoleHealth v2
mockk/mockkmain89

For agents

markdown · JSON · MCP: product_card(name="mockk/mockk")

Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem