Skip to content

Instantly share code, notes, and snippets.

@hetacz
Last active July 13, 2023 09:49
Show Gist options
  • Save hetacz/5b6849e55af54c385601b67fd7608c41 to your computer and use it in GitHub Desktop.
Save hetacz/5b6849e55af54c385601b67fd7608c41 to your computer and use it in GitHub Desktop.
kts
import com.adarshr.gradle.testlogger.theme.ThemeType
plugins {
id 'java'
id "com.adarshr.test-logger" version "3.2.0"
}
group 'com.eworkgroup'
version '1.0-SNAPSHOT'
repositories {
mavenCentral()
maven {
url "s3://ework-test-test-integration/releases"
credentials(AwsCredentials) {
accessKey XXXXXXXXXXXXXXXX
secretKey XXXXXXXXXXXXXX
}
}
}
java {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
tasks.withType(JavaCompile).configureEach {
options.encoding = 'UTF-8'
}
dependencies {
// https://mvnrepository.com/artifact/org.seleniumhq.selenium/selenium-java
testImplementation 'org.seleniumhq.selenium:selenium-java:4.8.1'
// https://mvnrepository.com/artifact/org.testng/testng
testImplementation 'org.testng:testng:7.7.1'
// https://mvnrepository.com/artifact/io.rest-assured/rest-assured
testImplementation 'io.rest-assured:rest-assured:5.3.0'
// https://mvnrepository.com/artifact/commons-io/commons-io
testImplementation 'commons-io:commons-io:2.11.0'
// https://mvnrepository.com/artifact/org.assertj/assertj-core
testImplementation 'org.assertj:assertj-core:3.24.2'
// https://mvnrepository.com/artifact/org.jsoup/jsoup
testImplementation 'org.jsoup:jsoup:1.15.4'
// https://mvnrepository.com/artifact/com.github.javafaker/javafaker
testImplementation 'com.github.javafaker:javafaker:1.0.2'
// https://mvnrepository.com/artifact/com.fasterxml.jackson.core/jackson-databind
testImplementation 'com.fasterxml.jackson.core:jackson-databind:2.14.2'
// https://mvnrepository.com/artifact/commons-codec/commons-codec
testImplementation 'commons-codec:commons-codec:1.15'
// https://mvnrepository.com/artifact/com.opencsv/opencsv
testImplementation 'com.opencsv:opencsv:5.7.1'
// https://mvnrepository.com/artifact/io.vavr/vavr
testImplementation 'io.vavr:vavr:1.0.0-alpha-4'
// https://mvnrepository.com/artifact/org.slf4j/slf4j-api
testImplementation 'org.slf4j:slf4j-api:2.0.6'
// https://mvnrepository.com/artifact/ch.qos.logback/logback-classic
testImplementation 'ch.qos.logback:logback-classic:1.4.5'
// https://mvnrepository.com/artifact/ch.qos.logback/logback-core
testImplementation 'ch.qos.logback:logback-core:1.4.5'
testCompileOnly 'org.projectlombok:lombok:1.18.26'
testAnnotationProcessor 'org.projectlombok:lombok:1.18.26'
testImplementation 'org.jetbrains:annotations:24.0.0'
// NGtoTR
testImplementation 'com.eworkgroup:testng-to-testrail:0.7.2'
// Test-framework
testImplementation 'com.eworkgroup:test-framework:0.4.6'
}
test {
useTestNG() {
suites 'testng/' + System.getProperty('suiteFile', 'testng.xml') ?: 'testng.xml'
}
systemProperties(System.getProperties())
testlogger {
theme ThemeType.STANDARD
showStackTraces true
slowThreshold 1000
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment