-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuild.gradle
More file actions
59 lines (48 loc) · 1.77 KB
/
build.gradle
File metadata and controls
59 lines (48 loc) · 1.77 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
plugins {
id 'java'
}
repositories {
mavenLocal()
maven {
url = uri('https://repo.maven.apache.org/maven2/')
}
}
def dependencyVersions = [
junit_version: '5.13.1',
cucumber_version: '7.32.0',
axe_version: '3.0',
json_version: '20250517',
selenium_java_version: '4.38.0'
]
dependencies {
testImplementation "io.cucumber:cucumber-java:${dependencyVersions.cucumber_version}",
"io.cucumber:cucumber-junit:${dependencyVersions.cucumber_version}",
"org.seleniumhq.selenium:selenium-java:${dependencyVersions.selenium_java_version}",
"org.junit.jupiter:junit-jupiter-api:${dependencyVersions.junit_version}",
"commons-codec:commons-codec:1.22.0"
testImplementation group: 'org.json', name: 'json', version:"${dependencyVersions.json_version}"
testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:${dependencyVersions.junit_version}"
}
group = 'acceptance-tests'
version = '1.0.0'
description = 'acceptance-tests'
java.sourceCompatibility = JavaVersion.VERSION_17
java.targetCompatibility = JavaVersion.VERSION_17
configurations {
cucumberRuntime {
extendsFrom testImplementation
}
}
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
task cucumber() {
dependsOn assemble, testClasses
doLast {
javaexec {
mainClass = "io.cucumber.core.cli.Main"
classpath = configurations.cucumberRuntime + sourceSets.main.output + sourceSets.test.output
args = ['--plugin', 'json:target/cucumber-report/report.json', '--plugin', 'html:target/cucumber-report/index.html', '--plugin', 'pretty', '--glue', 'uk.gov.di.test.step_definitions', 'src/test/resources']
}
}
}