Browse Kotlin Multiplatform libraries

index data from klibs.io
Sort
Tagtest
lifecycle2.11.0
6.0k39 used by

Responding to component state changes: ViewModel and LiveData APIs, Compose integrations, saved-state handling, process-wide state tracking, ReactiveStreams support, and testing utilities.

AndroidJSJVMNativeWasm·androidx·Apache License 2.0
navigation2.10.0-alpha05
6.0k1 used by

Simplifies navigation between UI destinations via a consistent API, offers type-safe arguments (Safe Args), Compose and fragment integrations, feature-module support, and testing utilities.

AndroidJSJVMNativeWasm·androidx·Apache License 2.0
room2.8.4
6.0k28 used by

Abstraction layer over SQLite enabling robust database access, compile-time schema export and migrations, annotation-processor tooling, coroutine/RxJava/paging integrations, Gradle plugin for schema management.

JVMNative·androidx·Apache License 2.0
mockk1.14.11
5.7k2 used by

Mocks library simplifies and automates unit testing by providing flexible, type-safe mocking capabilities. Key features include relaxed mocks, partial mocking, annotations for mock object creation, and support for various frameworks like JUnit and Spring.

JVM·mockk·Apache License 2.0
kotest6.2.1
4.8k32 used by

Flexible and comprehensive testing tool offering a variety of testing styles, assertions, and integrations for seamless test creation and management. Includes extensive community support and resources for quick onboarding.

AndroidJSJVMNativeWasm·kotest·Apache License 2.0
turbine1.2.1Featured
2.8k14 used by

Small testing library for coroutines Flow. Offers awaitItem(), awaitComplete(), and awaitError() to test emitted items, completion, and errors. Allows standalone usage and custom timeouts, ensuring all events are consumed.

JSJVMNativeWasm·cashapp·Apache License 2.0
spek2.0.19
2.2k

A test framework facilitating behavior-driven development with a clear, structured syntax. Actively developed in version 2.x, with version 1.x maintained for bug fixes and documentation.

JSJVMNative·spekframework·Other
roborazzi1.64.0
968

Enhances testing by enabling screenshot capturing during integration tests to validate app appearance and functionality. Integrated with Robolectric, supports visual comparison, and automates GitHub Actions workflows for reliable visual regression testing.

AndroidJVMNative·takahirom·Apache License 2.0
assertk0.28.1
8245 used by

Fluent assertion library simplifies writing and extending custom assertion methods. Supports multiple assertions, nullability, iterable assertions, extracting data, table assertions, and custom assertion creation.

JSJVMNativeWasm·assertk-org·MIT License
konform0.11.1
8152 used by

Type-safe DSL for data validation featuring zero dependencies and extensive support for nested, custom, and hint-based validations. Allows easy error access and integrates with testing libraries like Kotest.

JSJVMNativeWasm·konform-kt·MIT License
lincheck2.39
679

Framework for testing concurrent algorithms on the JVM. Enables declarative test specification, automatically generates random scenarios, and verifies correctness properties using stress-testing or model checking.

JVM·JetBrains·Mozilla Public License 2.0
atrium1.3.0-alpha-2
627

Open-source expectation/assertion library designed to support multiple APIs, focusing on helping developers understand errors and prevent pitfalls. Extensible, configurable, and provides enhanced reporting and sophisticated expectation builders.

JSJVM·robstoll·European Union Public License 1.2
kotlingrad0.4.7
546

Type-safe automatic differentiation framework enabling users to express differentiable programs with higher-dimensional data structures and operators. Ensures compile-time algebraic validity, reducing runtime errors and supporting advanced features like shape-safe tensor operations, symbolic derivatives, and property-based testing for numerical gradient checking.

JVM·breandan·Apache License 2.0
Mokkery3.4.2
434

Mocking library simplifies unit testing by enabling easy, boilerplate-free creation of mock objects and verifying interactions. Features include suspend function support and a compiler plugin to streamline mocking setup.

JSJVMNativeWasm·lupuuss·Apache License 2.0
mockative3.3.2
3301 used by

Mocking library with concise, type-safe API for generating mock classes, supporting stubbing, verification, and implicit stubbing of `Unit` functions. Integrates with Gradle, enabling easy configuration and verification in tests.

AndroidJSJVMNativeWasm·mockative·MIT License
burst2.13.0
319

Unit testing library facilitates parameterization of tests using enums, specializing test cases for each enum value and combination, enhancing test coverage with minimal code changes.

JSJVMNativeWasm·cashapp·Apache License 2.0
trailblaze0.0.2
242

AI-powered mobile testing framework enables authoring and executing tests using natural language, supports on-device execution, offers custom agent tools, and provides detailed reporting with Maestro integration.

JVM·block·Apache License 2.0
MocKMP2.0.2
221

Generates mocks and fakes for testing, utilizing a Kotlin Symbol Processor. Features include helper usage and workaround installation, supporting efficient setup and verification in unit tests.

JSJVMNativeWasm·kosi-libs·MIT License
dejavu0.3.1
191

Test-only toolkit turning UI recomposition behavior into assertions: tag composables, assert per-instance recomposition counts, get one-line test setup plus rich diagnostics and causality analysis.

AndroidJVMNativeWasm·himattm·Apache License 2.0
testBalloon1.0.1-K2.4.0
1661 used by

Coroutines-powered test framework enabling structured testing with dynamic tests, flexible configuration, and coroutine context inheritance. Features include extensible DSL, test fixtures, and multiplatform API.

AndroidJSJVMNativeWasm·infix-de·Apache License 2.0
kotlinx-resources0.15.0
1431 used by

Plugin and library facilitate reading test resources using a unified API. Provides `Resource` class for checking existence, reading text, and reading bytes from designated resource folders.

AndroidJSJVMNativeWasm·goncalossilva·MIT License
truthish1.0.4
128

Testing API for creating readable, fluent assertions inspired by Google Truth. Allows writing `assertThat` checks, custom messages, and exception assertions, producing cleaner error messages.

JSJVMNativeWasm·varabyte·Apache License 2.0
smithy-kotlin1.6.15
1093 used by

Generates code and runtime libraries from Smithy models, supporting various protocols, authentication, serialization, and observability, along with extensive testing and benchmarking modules.

JVMNative·smithy-lang·Apache License 2.0
kotlin-sdk0.24.0
80

Implements Agent Client Protocol for integrating AI agents, supporting client and agent capabilities, standardized AI interface, JSON-RPC handling, session management, and file operations. Includes examples and STDIO transport communication.

JSJVMWasm·agentclientprotocol·Apache License 2.0
vck6.0.0
699 used by

Implements verifiable credentials for issuing, presentation, and validation across various applications, supporting W3C and ISO standards, ARIES protocols, OpenID, and customizable cryptographic operations.

AndroidJVMNative·a-sit-plus·Apache License 2.0
mockingbird2.20.0
59

Facilitates mocking and unit testing by generating mock/spy boilerplate code without using annotation processors or reflection. Supports manual mocks, argument matching, test mode configuration, and experimental mock/spy generation plugin.

JSJVMNative·careem·Apache License 2.0
compose_edge_to_edge_preview0.9.0
59

Simulating WindowInsets in Compose previews and tests — status/navigation bars, display cutouts; visual overlap highlighting, screenshot-friendly configurations, and device recording to capture real insets.

AndroidJSJVMNativeWasm·timo-drick·The Unlicense
fakt1.0.0-beta07
55

Generates compile-time type-safe test fakes with zero runtime overhead, no reflection, thread-safe call tracking, smart defaults and compiler-plugin code generation for comprehensive test doubles.

JSJVMNativeWasm·rsicarelli·Apache License 2.0
compose-driver0.5.0
47

Expose Compose UIs over a REST-like HTTP API for AI agents to inspect (semantic tree, screenshots) and interact (clicks, gestures, text), record GIFs, run headlessly without production changes.

AndroidJVM·jdemeulenaere·Apache License 2.0
save-cli0.3.1
43

All-purpose command-line test framework for evaluating and certifying static analyzers, compilers, and other code-related tools. Enables automated test detection, comparison of expected vs. actual warnings, and supports multiple plugins for diverse testing scenarios.

JSJVMNative·saveourtool·MIT License
Page 1Next →