mockito/mockito-kotlin

Using Mockito with Kotlin

View on GitHub ↗Jump to charts ↓Open shareable report →

Data as of . Signed-in members get hourly updates — create a free account.

Summary Information

Updated 51 minutes ago
Added to GitGenius on September 21st, 2026
Created on January 18th, 2016
Open Issues & Pull Requests: 81 (+0)
GitHub issues: Enabled
Number of forks: 208
Total Stargazers: 3,162 (+0)
Total Subscribers: 37 (+0)

Repository Insights (GitGenius)

Median issue/PR response: 3.6 hours
Mean response time: 59.2 days
90th percentile: 299.3 days
Tracked items: 23

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 12
New in 7 days: 0
Closed in 7 days: 0
Avg open age: 665 days
Stale 30+ days: 12
Stale 90+ days: 11

Recent activity

Opened in 7 days: 0
Closed in 7 days: 0
Comments in 7 days: 0
Events in 7 days: 0

Top labels

No label distribution available yet.

Most active issues this week

Sign in to see which issues are moving.
Sign in

Detailed Description

Mockito-Kotlin is a helper library that makes Mockito easier to use with Kotlin.

The library solves the friction that arises when using Java's Mockito mocking framework with Kotlin code. Mockito was designed for Java and its API does not always align well with Kotlin idioms and syntax. Mockito-Kotlin provides a set of helper functions that bridge this gap, allowing developers to write more idiomatic Kotlin test code while leveraging Mockito's mocking capabilities.

Developers working on Kotlin projects that use Mockito should consider this library if they find the standard Mockito API verbose or awkward in their test code. It is particularly useful for teams already committed to Mockito who want a smoother experience in Kotlin. The library supports Android projects through dedicated documentation. The project is built with Gradle and available on Maven Central, making integration straightforward into most Kotlin build setups.

The project maintains a separate test module to validate compatibility across multiple Kotlin versions, with the CI pipeline testing against several versions while local development typically uses a default version. The codebase follows semantic versioning conventions. The library was originally created independently and later integrated into the official Mockito GitHub organization, indicating stable long-term maintenance within the broader Mockito ecosystem.