Use the Gradle Plugin Unit Test plugin to assist Gradle plugin unit testing.

Usage

Example 1. Applying the Gradle Plugin Unit Test plugin
build.gradle
plugins {
   id 'dev.gradleplugins.gradle-plugin-unit-test' version '1.1'
}
build.gradle.kts
plugins {
   id("dev.gradleplugins.gradle-plugin-unit-test") version("1.1")
}

Project Extension

The plugin adds the test extension to the Gradle project. We use the extension to configure the test suite’s testing strategies, dependencies and Test tasks.