com.github.dave99galloway.cucumbertest.gradle.CucumberTestPlugin
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
https://github.com/dave99galloway/cucumberTest
Sources: https://github.com/dave99galloway/cucumberTest
Version 1.4.0 (latest)
1.4.0
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)
Using the plugins DSL:
plugins {
id("com.github.dave99galloway.cucumbertest.gradle.CucumberTestPlugin") version "1.4.0"
}
Using legacy plugin application:
buildscript {
repositories {
maven {
url = uri("https://plugins.gradle.org/m2/")
}
}
dependencies {
classpath("com.github.dave99galloway:plugin:1.4.0")
}
}
apply(plugin = "com.github.dave99galloway.cucumbertest.gradle.CucumberTestPlugin")
Using the plugins DSL:
plugins {
id "com.github.dave99galloway.cucumbertest.gradle.CucumberTestPlugin" version "1.4.0"
}
Using legacy plugin application:
buildscript {
repositories {
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
classpath "com.github.dave99galloway:plugin:1.4.0"
}
}
apply plugin: "com.github.dave99galloway.cucumbertest.gradle.CucumberTestPlugin"