-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
74 lines (57 loc) · 2.1 KB
/
build.gradle
File metadata and controls
74 lines (57 loc) · 2.1 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
plugins {
id 'java'
id 'io.qameta.allure' version '2.11.2' // Use the latest stable version
}
// Define the version of Allure you want to use via the allureVersion property
def allureVersion = "2.25.0"
group = 'org.example'
version = '1.0-SNAPSHOT'
repositories {
mavenCentral()
}
allure {
version = '2.24.0' // Check for latest Allure version
autoconfigure = true
useJUnit5 {
version = '2.24.0' // Allure JUnit5 adapter version
}
}
dependencies {
testImplementation 'org.junit.jupiter:junit-jupiter:5.12.2'
testRuntimeOnly 'org.junit.platform:junit-platform-engine:1.12.2'
testRuntimeOnly 'org.junit.platform:junit-platform-launcher:1.12.2'
testImplementation platform('io.cucumber:cucumber-bom:7.23.0') // Use the latest stable version
testImplementation 'io.cucumber:cucumber-junit-platform-engine'
testImplementation 'org.junit.platform:junit-platform-suite' // For running suites
testImplementation 'io.cucumber:cucumber-java' // If using Java for glue code
testImplementation 'org.seleniumhq.selenium:selenium-java:4.33.0'
// Import allure-bom to ensure correct versions of all the dependencies are used
testImplementation platform("io.qameta.allure:allure-bom:$allureVersion")
// Add necessary Allure dependencies to dependencies section
testImplementation "io.qameta.allure:allure-junit5"
// define a BOM and its version
implementation(platform("com.squareup.okhttp3:okhttp-bom:5.1.0"))
// define any required OkHttp artifacts without version
implementation 'com.google.code.gson:gson:2.13.1'
testImplementation 'io.rest-assured:json-path:5.5.5'
testImplementation 'io.rest-assured:rest-assured:5.5.5' // Use the latest stable version
}
configurations {
cucumberRuntime {
extendsFrom testImplementation
}
}
test {
useJUnitPlatform()
systemProperties 'allure.results.directory': "${buildDir}/allure-results"
}
tasks.register('apiTest', Test) {
useJUnitPlatform {
includeTags 'api'
}
}
tasks.register('webTest', Test) {
useJUnitPlatform {
includeTags 'web'
}
}