2021-02-18 18:54:01 +01:00
|
|
|
dependencies {
|
2022-11-29 15:03:25 +01:00
|
|
|
//testImplementation "junit:junit:$junit_version"
|
|
|
|
testImplementation "org.junit.jupiter:junit-jupiter:$junit_jupiter_version"
|
|
|
|
testImplementation "org.junit.jupiter:junit-jupiter-api:$junit_jupiter_version"
|
2022-04-07 12:28:50 +02:00
|
|
|
testImplementation "org.json:json:$json_version"
|
2022-11-29 15:03:25 +01:00
|
|
|
testImplementation "org.mockito:mockito-junit-jupiter:$mockito_version"
|
|
|
|
testImplementation "org.mockito.kotlin:mockito-kotlin:4.1.0"
|
|
|
|
//testImplementation "org.mockito:mockito-inline:$mockito_version"
|
2021-02-18 18:54:01 +01:00
|
|
|
testImplementation "joda-time:joda-time:$jodatime_version"
|
2023-08-03 11:03:57 +02:00
|
|
|
testImplementation 'com.google.truth:truth:1.1.5'
|
2021-02-18 18:54:01 +01:00
|
|
|
testImplementation "org.skyscreamer:jsonassert:1.5.0"
|
|
|
|
testImplementation "org.hamcrest:hamcrest-all:1.3"
|
|
|
|
|
2023-08-03 11:03:57 +02:00
|
|
|
androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'
|
2022-02-10 17:13:42 +01:00
|
|
|
androidTestImplementation "androidx.test.ext:junit-ktx:$androidx_junit_version"
|
|
|
|
androidTestImplementation "androidx.test:rules:$androidx_rules_version"
|
2021-02-18 18:54:01 +01:00
|
|
|
|
|
|
|
androidTestImplementation 'androidx.test.uiautomator:uiautomator:2.2.0'
|
|
|
|
}
|
|
|
|
|
2022-06-27 21:59:40 +02:00
|
|
|
tasks.matching { it instanceof Test }.all {
|
|
|
|
//testLogging.events = ["failed", "skipped", "started"]
|
|
|
|
// use to display stdout in travis
|
|
|
|
testLogging.events = ["failed", "skipped", "started", "standard_out"]
|
|
|
|
testLogging.exceptionFormat = "full"
|
2022-11-29 15:03:25 +01:00
|
|
|
useJUnitPlatform()
|
2022-06-27 21:59:40 +02:00
|
|
|
}
|
|
|
|
|
2021-02-18 18:54:01 +01:00
|
|
|
android {
|
|
|
|
testOptions {
|
|
|
|
unitTests {
|
|
|
|
returnDefaultValues = true
|
|
|
|
includeAndroidResources = true
|
|
|
|
|
|
|
|
all {
|
|
|
|
maxParallelForks = 10
|
|
|
|
forkEvery = 20
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2021-09-25 18:42:45 +02:00
|
|
|
}
|