The kotlin.test library

The kotlin.test library is a core library provided by Kotlin. Its aim is to provide helper functions and annotations to be used in a test framework-independent fashion. These annotations and top-level functions are abstracted away from individual supported test frameworks using a set of library modules, including the following:

These tools and abstractions allow you to annotate and assert your tests in a consistent way, irrespective of which testing framework you are using.