kotest-assertions-compiler extension provides matchers to assert that given kotlin code snippet compiles or not.
This extension is a wrapper over kotlin-compile-testing and provides following matchers
To add the compilation matcher, add the following dependency to your project
During checking of code snippet compilation the classpath of calling process is inherited, which means any dependencies which are available in calling process will also be available while compiling the code snippet.
Matchers that verify if a given piece of Kotlin code compiles or not
|Asserts that the string is a valid Kotlin code.|
|Asserts that the file contains valid Kotlin code.|