The test framework is abstracted through the Asserter class.
Asserter implementation is provided out of the box.
Note that the class is not intended to be used directly from tests,
use instead the top-level assertion functions which delegate to the
The library consists of the modules:
kotlin-test-common– assertions for use in common code;
kotlin-test-annotations-common– test annotations for use in common code;
kotlin-test– a JVM implementation of assertions from
kotlin-test-junit– provides an implementation of Asserter on top of JUnit and maps the test annotations from
kotlin-test-annotations-commonto JUnit test annotations;
kotlin-test-js– a JS implementation of common test assertions and annotations with the out-of-the-box support for Jasmine, Mocha, and Jest testing frameworks, and an experimental way to plug in a custom unit testing framework.
Annotations to mark test functions and top-level functions for performing assertions in tests.