Change display and write test log

This commit is contained in:
Erwan Croze 2017-04-10 15:03:54 +02:00
parent 5bd91f8aba
commit e9e349e76e
2 changed files with 22 additions and 2 deletions

View file

@ -3,7 +3,7 @@ all: copy-files
../gradlew uninstallDebug
run-all-tests: copy-files
../gradlew :connectedAndroidTest
../gradlew :connectedAndroidTest -i
copy-libs:
mkdir -p assets && \

View file

@ -21,7 +21,6 @@ apply plugin: 'com.android.application'
dependencies {
compile project(":libLinphoneAndroidSdk")
compile fileTree(dir: 'libs', include: '*.jar')
//androidTestCompile project(":libLinphoneAndroidSdk")
androidTestCompile fileTree(dir: 'libs', include: '*.jar')
}
@ -68,6 +67,17 @@ android {
release.setRoot('build-types/release')
}
testOptions {
unitTests.all {
// All the usual Gradle options.
testLogging {
events "passed", "skipped", "failed", "standardOut", "standardError"
outputs.upToDateWhen {false}
showStandardStreams = true
}
}
}
lintOptions {
checkReleaseBuilds false
// Or, if you prefer, you can continue to check for errors in release builds,
@ -75,3 +85,13 @@ android {
abortOnError false
}
}
tasks.withType(Test) {
testLogging {
exceptionFormat 'full'
showCauses true
showExceptions true
showStackTraces true
showStandardStreams true
}
}