githubEdit

Getting Started

The following example provides the minimum setup for defining and running a single Konsist test.

circle-info

Check the starter projectsarrow-up-right containing Konsist tests or review the Konsist API referencearrow-up-right.

At a high-level Konsist check is a Unit test following multiple implicit steps.

3 steps are required for a declaration check and 4 steps are required for an architecture check:

spinner
circle-info

The declaration represents Kotlin declaration eg. Kotlin class is represented by KoClassDeclaration allowing to access class name (koClassDeclaration.name), methods (koClassDeclaration.functions()), etc. See Declaration.

Last updated