Runs cucumber acceptances tests.
Current Version
Create a project with an src/acceptance folder. Feature files (*.feature) go in src/acceptance/resources/features. Step definitions belong in src/acceptance/groovy/
Add to your build like this:
buildscript {
repositories {
mavenCentral()
maven {
url uri("https://maven.pkg.github.com/trevorism/gradle-release-plugin")
credentials {
username = findProperty("github.user") ?: System.getenv("GITHUB_ACTOR")
password = findProperty("github.token") ?: System.getenv("GITHUB_TOKEN")
}
}
}
dependencies {
classpath 'com.trevorism:gradle-acceptance-plugin:2.3.0'
}
}
apply plugin: "com.trevorism.gradle.acceptance"
//The below settings are the defaults -- override these values if necessary
acceptanceSettings{
stepDefinitionPackageRoot = "com/trevorism/gcloud"
featuresRoot = "resources/features"
}
dependencies{
acceptanceImplementation 'io.cucumber:cucumber-groovy:6.10.4'
}
Run with:
gradle acceptance