Skip to content

Latest commit

 

History

History
35 lines (28 loc) · 1.41 KB

File metadata and controls

35 lines (28 loc) · 1.41 KB

Kensa Logo Kensa Gradle Plugin

Latest Release

A Gradle plugin for the acceptance test framework Kensa. To use the full functionality of Kensa's @ExpandableSentence & @RenderedValue annotations (collection and rendering of function arguments), you must apply this plugin to your Kotlin project.

What it does

  • Applies the Kensa Kotlin compiler plugin dev.kensa.compiler-plugin
  • Adds dependency dev.kensa:kensa-core:<version> with capability to applicable compilations. dev.kensa:core-hooks
  • Exposes a kensa extension:
    • enabled: enable/disable compiler plugin (default: true).
    • debug: extra diagnostics from the compiler plugin (default: false).
    • sourceSets: Kotlin compilation names to apply to (default: ["test"]).

Quick start

  1. Add the plugin to your build.gradle.kts:
  2. Configure the plugin as needed.
  3. Build as normal.
   plugins {
       id("dev.kensa.gradle-plugin") version "<plugin-version>"
   }

Configure (optional)

kensa {
    enabled.set(true)                                 // default true
    debug.set(false)                                  // default false
    sourceSets.set(setOf("test", "acceptanceTest"))    // default "test"
}

Build as normal; the plugin attaches to the selected compilations.