Kotlin assertion libraries - JUnit, Hamkrest and Strikt

This page summarizes the projects mentioned and recommended in the original post on /r/Kotlin

InfluxDB – Built for High-Performance Time Series Workloads
InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.
www.influxdata.com
featured
Stream - Scalable APIs for Chat, Feeds, Moderation, & Video.
Stream helps developers build engaging apps that scale to millions with performant and flexible Chat, Feeds, Moderation, and Video APIs and SDKs powered by a global edge network and enterprise-grade infrastructure.
getstream.io
featured
  1. hamkrest

    Hamcrest for Kotlin

    In this episode we first look at improving our use of JUnit, using kotlin.test to improve type safety, and assertAll to make multiple checks on the same subject. Then we look at Hamkrest (https://github.com/npryce/hamkrest), a Kotlin reimplementation of the classic Hamcrest, before settingly on Strikt (https://strikt.io/) for our fluent assertions.

  2. InfluxDB

    InfluxDB – Built for High-Performance Time Series Workloads. InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.

    InfluxDB logo
  3. strikt

    An assertion library for Kotlin

    In this episode we first look at improving our use of JUnit, using kotlin.test to improve type safety, and assertAll to make multiple checks on the same subject. Then we look at Hamkrest (https://github.com/npryce/hamkrest), a Kotlin reimplementation of the classic Hamcrest, before settingly on Strikt (https://strikt.io/) for our fluent assertions.

  4. kotlin-power-assert

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

    I’m getting recommendations a compiler plug-in that also looks very interesting https://github.com/bnorm/kotlin-power-assert

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • Why do Kotlin tests (for Gradle projects) have to be inside classes?

    1 project | /r/Kotlin | 28 Jan 2023
  • Kotlin Mutation Tests

    1 project | /r/Kotlin | 25 Jan 2023
  • How to improve third-party libraries with Kotlin extensions

    2 projects | dev.to | 6 Dec 2022
  • Testing with fakes different states?

    1 project | /r/androiddev | 3 Aug 2022
  • Which assertion library do you use?

    4 projects | /r/Kotlin | 12 Jul 2022

Did you know that Kotlin is
the 16th most popular programming language
based on number of references?