The Baeldung logo
  • The Baeldung LogoKotlin SublogoKotlin Sublogo
  • Start Here
  • Guides ▼▲
    • Kotlin Tutorial

      Learn about the core concepts and basic building blocks of Kotlin.

    • Kotlin Collections

      Learn how to use collections in Kotlin.

    • Kotlin Basics

      Introductory examples for Kotlin.

    • Kotlin Classes and Objects

      Classes and Objects provide the foundation for all Kotlin development.

    • Kotlin with Spring

      Learn how to use the Spring framework with Kotlin.

  • Pricing
  • About ▼▲
    • Full Archive

      The high level overview of all the articles on the site.

    • About Baeldung

      About Baeldung.

Testing

Testing is an important step in the development process. Examine the guides below to learn how to use libraries such as Mockito, MockK, Kotest, and Ktor to create unit and integration tests.

  • Kotest (10)
  • MockK (7)
  • Test Assertions (4)
  • JUnit (4)
  • Lambda Expressions (2)

>> Testing Extension Methods in Kotlin

>> How to Mock and Verify Lambda Expression in Kotlin

>> Data-Driven Testing With Kotest

>> Testing a Lambda Function With Mockito Kotlin

>> JUnit 5 vs. Kotest: A Comparison for Unit Testing

>> How to Use MockServer in a Kotest Test

>> How to Run a Function Before Every Test Using Kotest

>> Kotest: Assert a List Has Elements with Specific Properties

>> How to Write a Spring Boot Test Using Kotest

>> How to Run Testcontainers Inside a Kotest Test

  • «
  • ← Previous
  • 1
  • 2
  • 3
  • 4
  • Next →
The Baeldung logo

Categories

  • Kotlin Basics
  • Kotlin Classes and Objects
  • Spring with Kotlin

Series

  • Kotlin Collections
  • Kotlin Strings
  • Kotlin Tutorial
  • Kotlin Spring
  • Kotlin Coroutines Tutorial

About

  • About Baeldung
  • Baeldung All Access
  • The Full Archive
  • Editors
  • eBooks
  • FAQ
  • Baeldung Pro
  • Terms Of Service
  • Privacy Policy
  • Company Info
  • Contact
The Baeldung Logo