Kotlin Tests

Open-source Kotlin projects categorized as Tests

Top 23 Kotlin Test 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.

  • 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.

    InfluxDB logo
  • mockito-kotlin

    Using Mockito with Kotlin

  • 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.

  • Kluent

    Fluent Assertion-Library for Kotlin

  • atrium

    A multiplatform expectation library for Kotlin

  • fakeit

    The Kotlin fake data generator library! (by thisisqubika)

  • SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
  • strikt

    An assertion library for Kotlin

  • kotlin-faker

    Port of a popular ruby faker gem written in kotlin. Generate realistically looking fake data such as names, addresses, banking details, and many more, that can be used for testing and data anonymization purposes.

  • prognoza

    Libre weather app with widgets and offline support

  • Project mention: Best Weather App That Doesn't Use Google Play Services | /r/GrapheneOS | 2023-07-05

    I personally use Prognoza, and can recommend it: https://github.com/davidtakac/prognoza

  • hamkrest

    Hamcrest for Kotlin

  • hikaku

    A library that tests if the implementation of a REST-API meets its specification.

  • expekt

    BDD assertion library for Kotlin

  • KotlinSnapshot

    Snapshot Testing framework for Kotlin.

  • minutest

    Simple, Expressive, Extensible Testing for Kotlin on the JVM

  • Elmyr

    A utility to make Kotlin/Java tests random yet reproducible

  • balin

    Balin is an automation library for Kotlin. It's basically a Selenium-WebDriver wrapper inspired by Geb.

  • kompile-testing

    Testing tools for kotlinc and kapt

  • SeleniumBuilder

    Kotlin DSL for Selenium. Provide a possibility to write tests in Kotlin type-safe builders style

  • Project mention: SeleniumBuilder | /r/Kotlin | 2023-11-02
  • TestIt

    Generate unit testing boilerplate from kotlin files.

  • selfie

    Snapshot testing for Java, Kotlin, and the JVM (by diffplug)

  • RandomGenKt

    Kotlin port of RandomGen

  • konsent

    An acceptance test library for Kotlin

  • SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
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).

Kotlin Tests related posts

  • For those DAO, Services, how about using static objects with mockk for test

    1 project | /r/u_Fun_Indication4997 | 8 Dec 2023
  • AocKt: Test-driven Advent of Code in Kotlin

    3 projects | /r/Kotlin | 29 Nov 2023
  • Tests Everywhere - Kotlin

    4 projects | dev.to | 23 Nov 2023
  • SeleniumBuilder

    1 project | /r/Kotlin | 2 Nov 2023
  • Evolution of unit tests in Android

    3 projects | dev.to | 22 Oct 2023
  • ๐Ÿงช **Demystifying Kotlin Unit Testing**: Your Odyssey to Code Confidence! ๐Ÿš€

    3 projects | dev.to | 27 Aug 2023
  • Best practices for Unit Testing Android Apps with Mockk, Kotest and others

    5 projects | dev.to | 10 May 2023
  • A note from our sponsor - InfluxDB
    www.influxdata.com | 1 Jun 2024
    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. Learn more โ†’

Index

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

Project Stars
1 mockk 5,302
2 Kotest 4,315
3 mockito-kotlin 3,080
4 spek 2,224
5 Kluent 862
6 atrium 540
7 fakeit 533
8 strikt 531
9 kotlin-faker 446
10 prognoza 360
11 hamkrest 341
12 hikaku 194
13 expekt 172
14 KotlinSnapshot 164
15 minutest 103
16 Elmyr 81
17 balin 72
18 kompile-testing 70
19 SeleniumBuilder 54
20 TestIt 43
21 selfie 45
22 RandomGenKt 35
23 konsent 29

Sponsored
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com