Fix MasterkeyCryptoCloudProviderTest and enhance logging when test fails
This commit is contained in:
parent
4871172fb4
commit
ae4c57ac8e
@ -17,6 +17,8 @@ android {
|
|||||||
|
|
||||||
buildConfigField 'int', 'VERSION_CODE', "${globalConfiguration["androidVersionCode"]}"
|
buildConfigField 'int', 'VERSION_CODE', "${globalConfiguration["androidVersionCode"]}"
|
||||||
buildConfigField "String", "VERSION_NAME", "\"${globalConfiguration["androidVersionName"]}\""
|
buildConfigField "String", "VERSION_NAME", "\"${globalConfiguration["androidVersionName"]}\""
|
||||||
|
|
||||||
|
testInstrumentationRunner 'androidx.test.runner.AndroidJUnitRunner'
|
||||||
}
|
}
|
||||||
|
|
||||||
compileOptions {
|
compileOptions {
|
||||||
@ -98,6 +100,11 @@ dependencies {
|
|||||||
// dagger
|
// dagger
|
||||||
annotationProcessor dependencies.daggerCompiler
|
annotationProcessor dependencies.daggerCompiler
|
||||||
implementation dependencies.dagger
|
implementation dependencies.dagger
|
||||||
|
|
||||||
|
api dependencies.jsonWebTokenApi
|
||||||
|
implementation dependencies.jsonWebTokenImpl
|
||||||
|
implementation dependencies.jsonWebTokenJson
|
||||||
|
|
||||||
// cloud
|
// cloud
|
||||||
implementation dependencies.dropbox
|
implementation dependencies.dropbox
|
||||||
implementation dependencies.msgraph
|
implementation dependencies.msgraph
|
||||||
@ -150,6 +157,7 @@ dependencies {
|
|||||||
testRuntimeOnly dependencies.junit4Engine
|
testRuntimeOnly dependencies.junit4Engine
|
||||||
|
|
||||||
testImplementation dependencies.mockito
|
testImplementation dependencies.mockito
|
||||||
|
testImplementation dependencies.mockitoInline
|
||||||
testImplementation dependencies.hamcrest
|
testImplementation dependencies.hamcrest
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -160,3 +168,16 @@ configurations {
|
|||||||
static def getApiKey(key) {
|
static def getApiKey(key) {
|
||||||
return System.getenv().getOrDefault(key, "")
|
return System.getenv().getOrDefault(key, "")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
tasks.withType(Test) {
|
||||||
|
testLogging {
|
||||||
|
events "failed"
|
||||||
|
|
||||||
|
showExceptions true
|
||||||
|
exceptionFormat "full"
|
||||||
|
showCauses true
|
||||||
|
showStackTraces true
|
||||||
|
|
||||||
|
showStandardStreams = false
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@ -16,6 +16,8 @@ android {
|
|||||||
|
|
||||||
buildConfigField 'int', 'VERSION_CODE', "${globalConfiguration["androidVersionCode"]}"
|
buildConfigField 'int', 'VERSION_CODE', "${globalConfiguration["androidVersionCode"]}"
|
||||||
buildConfigField "String", "VERSION_NAME", "\"${globalConfiguration["androidVersionName"]}\""
|
buildConfigField "String", "VERSION_NAME", "\"${globalConfiguration["androidVersionName"]}\""
|
||||||
|
|
||||||
|
testInstrumentationRunner 'androidx.test.runner.AndroidJUnitRunner'
|
||||||
}
|
}
|
||||||
|
|
||||||
compileOptions {
|
compileOptions {
|
||||||
@ -50,10 +52,8 @@ dependencies {
|
|||||||
implementation dependencies.appcompat
|
implementation dependencies.appcompat
|
||||||
|
|
||||||
api dependencies.jsonWebTokenApi
|
api dependencies.jsonWebTokenApi
|
||||||
runtimeOnly dependencies.jsonWebTokenImpl
|
implementation dependencies.jsonWebTokenImpl
|
||||||
runtimeOnly(dependencies.jsonWebTokenJson) {
|
implementation dependencies.jsonWebTokenJson
|
||||||
exclude group: 'org.json', module: 'json' //provided by Android natively
|
|
||||||
}
|
|
||||||
|
|
||||||
// test
|
// test
|
||||||
testImplementation dependencies.junit
|
testImplementation dependencies.junit
|
||||||
@ -65,6 +65,7 @@ dependencies {
|
|||||||
testRuntimeOnly dependencies.junit4Engine
|
testRuntimeOnly dependencies.junit4Engine
|
||||||
|
|
||||||
testImplementation dependencies.mockito
|
testImplementation dependencies.mockito
|
||||||
|
testImplementation dependencies.mockitoInline
|
||||||
testImplementation dependencies.hamcrest
|
testImplementation dependencies.hamcrest
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -169,12 +169,6 @@ dependencies {
|
|||||||
implementation dependencies.zxcvbn
|
implementation dependencies.zxcvbn
|
||||||
implementation dependencies.rxBinding
|
implementation dependencies.rxBinding
|
||||||
|
|
||||||
api dependencies.jsonWebTokenApi
|
|
||||||
runtimeOnly dependencies.jsonWebTokenImpl
|
|
||||||
runtimeOnly(dependencies.jsonWebTokenJson) {
|
|
||||||
exclude group: 'org.json', module: 'json' //provided by Android natively
|
|
||||||
}
|
|
||||||
|
|
||||||
// multidex
|
// multidex
|
||||||
implementation dependencies.multidex
|
implementation dependencies.multidex
|
||||||
|
|
||||||
@ -237,3 +231,16 @@ androidExtensions {
|
|||||||
static def getApiKey(key) {
|
static def getApiKey(key) {
|
||||||
return System.getenv().getOrDefault(key, "")
|
return System.getenv().getOrDefault(key, "")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
tasks.withType(Test) {
|
||||||
|
testLogging {
|
||||||
|
events "failed"
|
||||||
|
|
||||||
|
showExceptions true
|
||||||
|
exceptionFormat "full"
|
||||||
|
showCauses true
|
||||||
|
showStackTraces true
|
||||||
|
|
||||||
|
showStandardStreams = false
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@ -73,3 +73,16 @@ dependencies {
|
|||||||
|
|
||||||
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
|
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
tasks.withType(Test) {
|
||||||
|
testLogging {
|
||||||
|
events "failed"
|
||||||
|
|
||||||
|
showExceptions true
|
||||||
|
exceptionFormat "full"
|
||||||
|
showCauses true
|
||||||
|
showStackTraces true
|
||||||
|
|
||||||
|
showStandardStreams = false
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user