Kassert is an assertion library for Kotlin. It is a rewritten and simplified version of Kluent. Like Kluent, it is using the Infix-Notations and Extension Functions to make the assertion more human-readable.
- I removed the multiplatform support. I am only using Kotlin in JVM, so kassert is only focusing on JVM, making the code much easier to maintain.
- I only kept the "backtick version" of the assertion. So the statements in unit tests are more like a description of the functionalities.
- I removed the Junit dependency. Kassert only depends on the kotlin standard library and kotlin-test package.
To use the package, you need to use the following Maven dependency:
<dependency>
<groupId>io.github.cerrorism</groupId>
<artifactId>kassert</artifactId>
<version>{release-version}</version>
</dependency>
This library is available on both Maven Central and GitHub Package.
The unit tests of Kassert can be used as examples, which can be found under
/src/test/kotlin
folder.