For the complete documentation index, see llms.txt. This page is also available as Markdown.

Getting Started

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

Check the starter projects containing Konsist setup and the starter test snippets for sample Konsist tests.

At a high level, a 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:

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

Last updated