Explore Konsist test samples in the KMP starter project
mainThis starter project demonstrates how to integrate Konsist into a Kotlin Multiplatform (KMP) environment using Gradle and JUnit 5. The sample includes two types of test implementations located in the konsistTest module:
- Single test approach:
SampleKonsistTest.ktcontains a single test for each Konsist check. - Dynamic test approach:
SampleDynamicKonsistTest.ktuses dynamic tests to cover multiple checks.
Project structure for tests:
konsistTest/src/jvmTest/kotlin/com/sample/SampleKonsistTest.ktkonsistTest/src/jvmTest/kotlin/com/sample/SampleDynamicKonsistTest.kt