Skip to content
This repository was archived by the owner on Nov 25, 2023. It is now read-only.
/ assert Public archive

Kotlin Multiplatform library providing lightweight assertions.

License

Notifications You must be signed in to change notification settings

kotools/assert

Folders and files

NameName
Last commit message
Last commit date

Latest commit

e3ae605 · Nov 25, 2023
Oct 28, 2023
Aug 22, 2022
Sep 8, 2022
Sep 7, 2022
Oct 28, 2023
Oct 27, 2023
Nov 25, 2023
Oct 27, 2023
Sep 7, 2022
Aug 22, 2022
Feb 11, 2022
Feb 11, 2022

Repository files navigation

This project is deprecated. We recommend using the testing library from Kotlin instead.

Kotools Assert

Maven Central Kotlin

Kotools Assert is a multiplatform library providing lightweight assertions for Kotlin.

This library currently supports the JVM, JS and Native platforms.

1 assertEquals 1
2 assertNotEquals 0

assertNull { null }
null.assertNull()

assertNotNull { 3 }
3.assertNotNull()

assertPass { println("Hello") }
assertFails { throw Exception() }
assertFailsWith<RuntimeException> { throw RuntimeException() }

Installation

Gradle

Kotlin DSL

testImplementation("io.github.kotools:assert:3.0.2")

Groovy DSL

testImplementation 'io.github.kotools:assert:3.0.2'

Maven

<dependency>
    <groupId>io.github.kotools</groupId>
    <artifactId>assert</artifactId>
    <version>3.0.2</version>
    <scope>test</scope>
</dependency>

Documentation

Latest documentation of Kotools Assert is available here.

Contributing

Feel free to contribute to the project with issues and pull requests.

This project follows the Conventional Commits guidelines for committing with Git. Please read the specifications before committing to this project.

License

This project is licensed under the MIT License.