Kotlin Testing

Open-source Kotlin projects categorized as Testing

Top 23 Kotlin Testing Projects

  • mockk

    mocking library for Kotlin

    Project mention: For those DAO, Services, how about using static objects with mockk for test | /r/u_Fun_Indication4997 | 2023-12-08

    The official suggests using dagger/hilt to inject them. However, they could be static based on the static ApplicationContext. Although Dagger/hilt aids in unit testing, mockk can accomplish this easily as well by modifying bytecode during run time. As for the stability, `mockk` has 5000+ stars on GitHub and keeps renewing.

  • Kotest

    Powerful, elegant and flexible test framework for Kotlin with additional assertions, property testing and data driven testing

    Project mention: AocKt: Test-driven Advent of Code in Kotlin | /r/Kotlin | 2023-11-29

    As you might know, Advent of Code will begin this Friday! If, like me, you want to have a go at solving the puzzles in Kotlin, I would like to share with you a little library I've developed to reduce boilerplate and solve the puzzles in a test-driven approach. It is based on Kotest, a modern and Kotlin-first test framework.

  • LearnThisRepo.com

    Learn 300+ open source libraries for free using AI. LearnThisRepo lets you learn 300+ open source repos including Postgres, Langchain, VS Code, and more by chatting with them using AI!

  • kotlin-sample-app

    📚 Sample Android Components Architecture on a modular word focused on the scalability, testability and maintainability written in Kotlin, following best practices using Jetpack.

  • spek

    A specification framework for Kotlin

    Project mention: Evolution of unit tests in Android | dev.to | 2023-10-22

    Spek is a unit testing framework for Kotlin which supports Specification and Gherkin style.

  • Barista

    :coffee: The one who serves a great Espresso (by AdevintaSpain)

    Project mention: Trying to learn espresso. | /r/androiddev | 2023-04-06

    Espresso is pain out of the box, you'll have much better time if you try Barista https://github.com/AdevintaSpain/Barista

  • NotyKT 🖊️

    📒 NotyKT is a complete 💎Kotlin-stack (Backend + Android) 📱 application built to demonstrate the use of Modern development tools with best practices implementation🦸.

  • Shot

    Screenshot testing library for Android

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

  • Pact JVM

    JVM version of Pact. Enables consumer driven contract testing, providing a mock service and DSL for the consumer project, and interaction playback and verification for the service provider project.

    Project mention: Running tests against a different repository (CI/CD) | /r/devops | 2023-06-03

    API Contract Testing might be worth exploring. Gives you the ability to run it quickly locally or in CI/CD. A centralized way to validate if your changes broke another service might also be interesting. That series of videos from the same team is gold: https://docs.pact.io

  • Kluent

    Fluent Assertion-Library for Kotlin

  • skrape.it

    A Kotlin-based testing/scraping/parsing library providing the ability to analyze and extract data from HTML (server & client-side rendered). It places particular emphasis on ease of use and a high level of readability by providing an intuitive DSL. It aims to be a testing lib, but can also be used to scrape websites in a convenient fashion.

    Project mention: Ksoup - Koltin Multiplatform HTML Parser ⚡ | /r/androiddev | 2023-05-11

    What is wrong with skrape.it?

  • kotlin-compile-testing

    A library for testing Kotlin and Java annotation processors, compiler plugins and code generation

  • android-template

    Android app starter template

  • marathon

    Cross-platform test runner written for Android and iOS projects (by Malinskiy)

  • kotlin-power-assert

    Kotlin compiler plugin to enable diagrammed function calls in the Kotlin programming language

  • roborazzi

    Make JVM Android integration test visible 🤖📸

  • strikt

    An assertion library for Kotlin

  • EvoMaster

    The first open-source AI-driven tool for automatically generating system-level test cases (also known as fuzzing) for web/enterprise applications. Currently targeting whitebox and blackbox testing of Web APIs, like REST, GraphQL and RPC (e.g., gRPC and Thrift).

    Project mention: EvoMaster 2.0: A Fuzzer for generating JUnit tests for REST, GraphQL and RPC APIs | /r/java | 2023-10-13

    Open-source on GitHub at: https://github.com/EMResearch/EvoMaster

  • kotlin-faker

    https://serpro69.github.io/kotlin-faker/ Generate realistically looking fake data such as names, addresses, banking details, and many more, that can be used for testing and data anonymization purposes.

  • hamkrest

    Hamcrest for Kotlin

  • venom

    A lightweight tool that simplifies testing of the process death scenario. (by YarikSOffice)

    Project mention: What is a less known 'must do' while launching an app | /r/androiddev | 2023-05-03

    What's even better is either https://github.com/YarikSOffice/venom or adb shell am kill [packagename] (when backgrounded)

  • dropshots

    Easy on-device screenshot testing for Android.

  • Android-screenshot-testing-playground

    A sample repo to introduce screenshot testing in Android with different libraries

  • kotlinfixture

    Fixtures for Kotlin providing generated values for unit testing

  • WorkOS

    The modern API for authentication & user identity. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020). The latest post mention was on 2023-12-08.

Kotlin Testing related posts


What are some of the best open-source Testing projects in Kotlin? This list will help you:

Project Stars
1 mockk 5,246
2 Kotest 4,206
3 kotlin-sample-app 2,377
4 spek 2,221
5 Barista 1,692
6 NotyKT 🖊️ 1,621
7 Shot 1,143
8 Pact JVM 1,043
9 Kluent 861
10 skrape.it 740
11 kotlin-compile-testing 620
12 android-template 559
13 marathon 547
14 kotlin-power-assert 539
15 roborazzi 528
16 strikt 521
17 EvoMaster 406
18 kotlin-faker 392
19 hamkrest 340
20 venom 272
21 dropshots 254
22 Android-screenshot-testing-playground 244
23 kotlinfixture 241
The modern API for authentication & user identity.
The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.