What problem does it solve?
Reference guide for testing Kotlin Gradle plugins — generic principles (test pyramid, arrange-act-assert, determinism, fixtures) and this project's three-source-set strategy (test with Kotest+ProjectBuilder, slopTest with Konsist, functionalTest with Gradle TestKit), internal-methods pattern, createExtension helper, temp directory pattern, and the 90% thin-orchestrator coverage rule. Activates when writing tests, placing tests in the right source set, or deciding what to test.
Core Features & Use Cases
- Comprehensive guidance on structuring unit, architecture, and functional tests for Kotlin Gradle plugins, including patterns like Arrange/Act/Assert, test isolation, determinism, and fixture usage.
- Practical templates for using Kotest with ProjectBuilder, Konsist-based architecture checks, and Gradle TestKit to validate plugin behavior across multiple source sets.
- Guidance on the createExtension helper, temp directory patterns, and best practices to maintain fast, reliable tests with minimal flakiness.
Quick Start
Open this guide and apply the patterns to your Kotlin Gradle plugin tests.