Added Java-Cucumber

This commit is contained in:
Dipanjan Bhowmik committed 2021-10-10 11:02:16 +05:30
1 parent c260410064
commit 6891e5f993
14 files changed
+506

No files matched your search

+44
View File
@@ -0,0 +1,44 @@
apply plugin: "groovy"
apply plugin: "java"
repositories {
mavenCentral()
}
sourceCompatibility = '1.8'
targetCompatibility = '1.8'
dependencies {
implementation 'org.codehaus.groovy:groovy:3.0.8'
testImplementation 'io.cucumber:cucumber-java:6.10.4'
testImplementation 'io.cucumber:cucumber-junit:6.10.4'
testImplementation 'junit:junit:4.13.2'
}
configurations {
cucumberRuntime {
extendsFrom testImplementation
}
}
test {
useJUnitPlatform()
testLogging {
events "passed", "skipped", "failed"
}
}
task cucumber() {
dependsOn assemble, testClasses
doLast {
javaexec {
main = "io.cucumber.core.cli.Main"
classpath = configurations.cucumberRuntime + sourceSets.main.output + sourceSets.test.output
args = [
'--plugin', 'pretty',
'--plugin', 'html:target/cucumber-report.html',
'--glue', 'com.gildedrose',
'src/test/resources']
}
}
}