Kotlin Tests

Open-source Kotlin projects categorized as Tests

Top 23 Kotlin Test Projects

  • GitHub repo mockk

    mocking library for Kotlin

    Project mention: Fullstack Devs be like | reddit.com/r/ProgrammerHumor | 2021-03-06

    I haven't tried Jest, I will need to take a look, but at work we use Mockk (https://mockk.io/) and I really dig it.

  • GitHub repo Kotest

    Powerful, elegant and flexible test framework for Kotlin

    Project mention: Parameterized Tests with Junit5 on Kotlin | reddit.com/r/Kotlin | 2021-04-03

    Or use https://kotest.io

  • GitHub repo mockito-kotlin

    Using Mockito with Kotlin

    Project mention: Argument(s) are different! Wanted: Unit test | reddit.com/r/androiddev | 2020-12-27
  • GitHub repo spek

    A specification framework for Kotlin

  • GitHub repo Kluent

    Fluent Assertion-Library for Kotlin

  • GitHub repo atrium

    A multiplatform assertion library for Kotlin

    Project mention: Hacktoberfest: 69 Beginner-Friendly Projects You Can Contribute To | dev.to | 2020-09-29

    https://github.com/robstoll/atrium A multiplatform assertion library for Kotlin

  • GitHub repo strikt

    An assertion library for Kotlin

  • GitHub repo hamkrest

    Hamcrest for Kotlin

  • GitHub repo expekt

    BDD assertion library for Kotlin

  • GitHub repo hikaku

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

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

  • GitHub repo KotlinSnapshot

    Snapshot Testing framework for Kotlin.

  • GitHub repo minutest

    Simple, Expressive, Extensible Testing for Kotlin on the JVM

  • GitHub repo Elmyr

    A utility to make Kotlin/Java tests random yet reproducible

  • GitHub repo balin

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

  • GitHub repo kompile-testing

    Testing tools for kotlinc and kapt

  • GitHub repo SeleniumBuilder

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

  • GitHub repo aspen

    Aspen is a simple test runner for Kotlin that allows you to write tests using your own DSL.

  • GitHub repo arbitrater

    Arbitrater is a Kotlin library for creating arbitrary instances of classes by reflection for use in testing. In contrast to POJO generators, it supports Kotlin's optional parameters and nullable types.

  • GitHub repo RandomGenKt

    Kotlin port of RandomGen

  • GitHub repo konsent

    An acceptance test library for Kotlin

  • GitHub repo kspec

    Kotlin Specification Framework

  • GitHub repo DynaTest

    Simplest Most Powerful Testing Framework For Kotlin

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 2021-04-03.


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

Project Stars
1 mockk 3,767
2 Kotest 2,866
3 mockito-kotlin 2,568
4 spek 2,085
5 Kluent 727
6 atrium 361
7 strikt 322
8 hamkrest 321
9 expekt 167
10 hikaku 155
11 kotlin-faker 141
12 KotlinSnapshot 141
13 minutest 93
14 Elmyr 68
15 balin 67
16 kompile-testing 67
17 SeleniumBuilder 50
18 aspen 32
19 arbitrater 29
20 RandomGenKt 26
21 konsent 25
22 kspec 18
23 DynaTest 18