-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
70 lines (58 loc) · 2.73 KB
/
build.gradle
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
plugins {
id 'java'
id 'io.qameta.allure' version '2.12.0' // Correct version of Allure plugin
}
apply plugin: 'java'
apply plugin: 'io.qameta.allure'
group = 'org.example'
version = '1.0-SNAPSHOT'
repositories {
mavenCentral()
gradlePluginPortal() // Ensure this is included for fetching plugins
}
dependencies {
testImplementation platform('org.junit:junit-bom:5.10.0')
testImplementation 'org.junit.jupiter:junit-jupiter'
testImplementation 'io.cucumber:cucumber-java:7.14.0'
testImplementation 'io.cucumber:cucumber-junit:7.14.0'
testImplementation 'org.junit.jupiter:junit-jupiter:5.9.3'
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.8.2' // JUnit 5 API
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.8.2' // JUnit 5 Engine
testImplementation 'org.junit.platform:junit-platform-suite-api:1.8.2' // Suite API
testImplementation 'org.junit.vintage:junit-vintage-engine:5.8.2' //
implementation group: 'io.github.bonigarcia', name: 'webdrivermanager', version: '5.9.2'
implementation group: 'org.seleniumhq.selenium', name: 'selenium-java', version: '4.27.0'
implementation 'org.apache.poi:poi:5.2.3'
implementation 'org.apache.poi:poi-ooxml:5.2.3'
implementation 'org.springframework:spring-context:5.3.25'
implementation 'org.apache.logging.log4j:log4j-api:2.20.0'
implementation 'org.apache.logging.log4j:log4j-core:2.20.0'
implementation group: 'log4j', name: 'log4j', version: '1.2.17'
implementation group: 'org.apache.logging.log4j', name: 'log4j-core', version: '2.24.3'
testImplementation 'junit:junit:4.13.2'
testImplementation 'io.cucumber:cucumber-junit-platform-engine:7.14.0'
testImplementation 'io.qameta.allure:allure-cucumber7-jvm:2.17.3'
// Allure dependencies
// testImplementation 'io.qameta.allure:allure-cucumber6-jvm:2.12.0' // If using Cucumber 6
testImplementation 'io.qameta.allure:allure-java-commons:2.17.0' // Core Allure dependencies
testImplementation 'io.qameta.allure:allure-cucumber6-jvm:2.13.9'
testImplementation 'org.junit.jupiter:junit-jupiter:5.9.3' // JUnit 5 support
testImplementation 'io.cucumber:cucumber-java:7.14.0' // Cucumber Java support
}
test {
useJUnitPlatform() // Make sure to use JUnit Platform for tests
include '**/TestRunner.class' // Include your TestRunner class explicitly
}
// Tasks to generate Allure Report
//tasks.register("allureReport", Class.forName("io.qameta.allure.gradle.task.AllureReport")) {
// dependsOn test
//}
//
//tasks.register("allureServe", Class.forName("io.qameta.allure.gradle.task.AllureServe")) {
// dependsOn tasks.named("allureReport")
//}
//allure {
// version = '2.13.9'
// autoconfigure = true
// aspectj = true
//}