mirror of
https://github.com/emilybache/GildedRose-Refactoring-Kata.git
synced 2026-10-13 17:49:25 +00:00
Added Java-Cucumber
This commit is contained in:
1 parent
c260410064
commit
6891e5f993
14 files changed
+506
No files matched your search
@@ -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']
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user