Kotlin Testing

Open-source Kotlin projects categorized as Testing

Top 23 Kotlin Testing Projects

  • mockk

    mocking library for Kotlin

    Project mention: mockk VS mockative - a user suggested alternative | libhunt.com/r/mockk | 2022-11-09
  • Kotest

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

    Project mention: Are there any plans to make a better build system for Kotlin than Gradle? | reddit.com/r/Kotlin | 2022-09-17
  • Zigi

    Workflow assistant built for devs & their teams. Automate the mundane part of your day, with live actionable messages for your GitHub & Jira tasks.

  • 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

  • NotyKT 🖊️

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

    Project mention: I have been unable to find some good and upto date android projects on using api, retrofit and mvvm architecture on youtube. Was hoping you guys can suggest some good playlists to learn these and other important topics. | reddit.com/r/androiddev | 2022-10-02

    I also recommend: NotyKt multi-module

  • Shot

    Screenshot testing library for Android

    Project mention: Improving snapshot tests with Paparazzi | dev.to | 2022-07-31

    I previously wrote about snapshot testing Compose with Shot here: https://medium.com/proandroiddev/oh-snap-966bd786b7a4

  • 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: 🤝 Contract Testing with Pact | dev.to | 2022-10-21

    This PoC shows a step by step implementation of contract testing using Pact.

  • Scout APM

    Truly a developer’s best friend. Scout APM is great for developers who want to find and fix performance issues in their applications. With Scout, we'll take care of the bugs so you can focus on building great things 🚀.

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

  • kotlin-power-assert

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

  • strikt

    An assertion library for Kotlin

    Project mention: Which assertion library do you use? | reddit.com/r/Kotlin | 2022-07-12

    Has anyone compared Strikt with AssertK? I'm especially interested in the number of matchers.

  • marathon

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

  • android-template

    Android app starter template

    Project mention: Android Starter Template (hilt, ktor, coroutines, flow, modules, gradle.kts, version catalog, compose, MVVM, tests, GitHub CI) | reddit.com/r/androiddev | 2022-11-21
  • hamkrest

    Hamcrest for Kotlin

    Project mention: Which assertion library do you use? | reddit.com/r/Kotlin | 2022-07-12

    Then you should give Hamkrest a try

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

    Project mention: Datafaker: An Alternative to Using Production Data | reddit.com/r/java | 2022-05-23

    Lately, I've also tried https://github.com/serpro69/kotlin-faker which has a very convenient unique value generation for all fake data providers.

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

    Project mention: Anyone using AI for testing backend? | reddit.com/r/softwaretesting | 2022-02-07

    If you want to see an exampling of AI-based fuzzing of backend services, you can look at EvoMaster

  • venom

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

    Project mention: Can we talk process death? | reddit.com/r/androiddev | 2022-01-21

    You can technically repro it with the red square "terminate" button in Android Studio, with am kill, and https://github.com/YarikSOffice/venom does some magic to repro it too

  • dropshots

    Easy on-device screenshot testing for Android.

    Project mention: M1 and M2 chips | reddit.com/r/androiddev | 2022-07-28

    There's one major advantage to paparazzi though: it's way faster, which allows us to do the snapshot tests every commit instead of only nightly. Dropshots also seems promising, but still needs an emulator, so it won't be as fast as paparazzi.

  • kotlinfixture

    Fixtures for Kotlin providing generated values for unit testing

    Project mention: Kotlin Fixture Generator Plugin | reddit.com/r/Kotlin | 2022-03-05
  • mockative

    Mocking for Kotlin/Native and Kotlin Multiplatform using the Kotlin Symbol Processing API (KSP)

    Project mention: MocKMP VS mockative - a user suggested alternative | libhunt.com/r/MocKMP | 2022-11-09
  • minutest

    Simple, Expressive, Extensible Testing for Kotlin on the JVM

  • MocKMP

    A Kotlin/Multiplatform Kotlin Symbol Processor that generates Mocks & Fakes.

    Project mention: MocKMP VS mockative - a user suggested alternative | libhunt.com/r/MocKMP | 2022-11-09
  • Road-To-Effective-Snapshot-Testing

    A sample repo describing best practices for effective snapshot testing on Android

    Project mention: Shot VS RoadToEffectiveSnapshotTesting - a user suggested alternative | libhunt.com/r/Shot | 2021-12-05

    Showcase project showing some best practices for Snapshot testing on Android

  • SonarQube

    Static code analysis for 29 languages.. Your projects are multi-language. So is SonarQube analysis. Find Bugs, Vulnerabilities, Security Hotspots, and Code Smells so you can release quality code every time. Get started analyzing your projects today for free.

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 2022-11-21.

Kotlin Testing related posts

Index

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

Project Stars
1 mockk 4,715
2 Kotest 3,711
3 kotlin-sample-app 2,276
4 spek 2,199
5 NotyKT 🖊️ 1,359
6 Shot 1,019
7 Pact JVM 958
8 Kluent 809
9 skrape.it 580
10 kotlin-power-assert 462
11 strikt 444
12 marathon 382
13 android-template 355
14 hamkrest 332
15 kotlin-faker 293
16 EvoMaster 286
17 venom 262
18 dropshots 195
19 kotlinfixture 186
20 mockative 114
21 minutest 99
22 MocKMP 94
23 Road-To-Effective-Snapshot-Testing 49
Build time-series-based applications quickly and at scale.
InfluxDB is the Time Series Data Platform where developers build real-time applications for analytics, IoT and cloud-native services in less time with less code.
www.influxdata.com