JUnit 5 Testing Framework

Overview

Qualified supports writing test fixtures for Kotlin using JUnit 5.

Quick Start

fun add(a: Int, b: Int) = a + b
import org.junit.jupiter.api.*

class AddTest {
    @Test
    @DisplayName("add(1, 1) == 2")
    fun test1() {
        Assertions.assertEquals(2, add(1, 1))
    }
}

Assertion Libraries

Following assertion libraries can be used:

Learn More

You can learn more on the JUnit website.