Owner:
David Galloway
A cucumber gradle plugin implemented using javaexec. This plugin adds a task called 'cucumberTest' to your cucumber-jvm project enabling you to run tests through gradle using the cucumber cli. Configuration is done at the plugin level and the options to do this are documented in com.github.dave99galloway.gradle.cucumbertest.CucumberTestPluginExtension
Version 1.4.0 (latest)
Created 02 June 2021.
A cucumber gradle plugin implemented using javaexec. This plugin adds a task called 'cucumberTest' to your cucumber-jvm project enabling you to run tests through gradle using the cucumber cli. Configuration is done at the plugin level and the options to do this are documented in com.github.dave99galloway.gradle.cucumbertest.CucumberTestPluginExtension To use this plugin, follow the provided kotlin dsl instructions below Limitations / Pre-Requisites :- - this plugin has only been tested with Kotlin DSL and Kotlin implementation code. Groovy DSL and Java implementation are not supported - you must have a source set called cucumberTest (and a cucumberTestImplementation Configuration extending configurations.implementation - you must have a source set called main - all your cucumber test code must liven in either or both of these source sets - you need to add these dependencies manually (replace cucumberVersion with your cucumber-jvm version or add a gradle property and reference it in your build.gradle): implementation(group = "io.cucumber", name = "cucumber-java8", version = cucumberVersion) implementation(group = "io.cucumber", name = "cucumber-java", version = cucumberVersion) implementation(group = "io.cucumber", name = "cucumber-junit", version = cucumberVersion)
Add this plugin to your build using the plugins DSL:
plugins {
id("com.github.dave99galloway.cucumbertest.gradle.CucumberTestPlugin") version "1.4.0"
}
See also:
-
Adding the plugin to build logic for usage in precompiled script plugins.
See the relevant documentation for more information.
Add this plugin as a dependency to
<convention-plugins-build>/build.gradle(.kts):dependencies { implementation("com.github.dave99galloway.cucumbertest.gradle.CucumberTestPlugin:com.github.dave99galloway.cucumbertest.gradle.CucumberTestPlugin.gradle.plugin:1.4.0") }It can then be applied in the precompiled script plugin:plugins { id("com.github.dave99galloway.cucumbertest.gradle.CucumberTestPlugin") } -
The legacy method of plugin application.
See the relevant documentation for more information.buildscript { repositories { gradlePluginPortal() } dependencies { classpath("com.github.dave99galloway.cucumbertest.gradle.CucumberTestPlugin:com.github.dave99galloway.cucumbertest.gradle.CucumberTestPlugin.gradle.plugin:1.4.0") } } apply(plugin = "com.github.dave99galloway.cucumbertest.gradle.CucumberTestPlugin") - Applying plugins to all subprojects .