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.

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

  • 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

  • WorkOS

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

    WorkOS logo
  • 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

  • roborazzi

    Make JVM Android integration test visible ๐Ÿค–๐Ÿ“ธ

  • android-template

    Android app starter template

  • marathon

    Cross-platform test runner (by Malinskiy)

  • kotlin-power-assert

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

  • 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

    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.

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

  • Android-screenshot-testing-playground

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

  • dropshots

    Easy on-device screenshot testing for Android.

  • kotlinfixture

    Fixtures for Kotlin providing generated values for unit testing

  • 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 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 5,280
2 Kotest 4,282
3 kotlin-sample-app 2,377
4 spek 2,223
5 Barista 1,695
6 NotyKT ๐Ÿ–Š๏ธ 1,648
7 Shot 1,160
8 Pact JVM 1,056
9 Kluent 862
10 skrape.it 752
11 kotlin-compile-testing 631
12 roborazzi 580
13 android-template 565
14 marathon 553
15 kotlin-power-assert 552
16 strikt 528
17 EvoMaster 428
18 kotlin-faker 426
19 hamkrest 341
20 venom 273
21 Android-screenshot-testing-playground 255
22 dropshots 255
23 kotlinfixture 246

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