diff --git a/liblinphone_tester/Makefile b/liblinphone_tester/Makefile index d34cebbb5..105d62c59 100644 --- a/liblinphone_tester/Makefile +++ b/liblinphone_tester/Makefile @@ -3,7 +3,7 @@ all: copy-files ../gradlew uninstallDebug run-all-tests: copy-files - ../gradlew :connectedAndroidTest + ../gradlew :connectedAndroidTest -i copy-libs: mkdir -p assets && \ diff --git a/liblinphone_tester/build.gradle b/liblinphone_tester/build.gradle index a7570183b..5bcdadabe 100644 --- a/liblinphone_tester/build.gradle +++ b/liblinphone_tester/build.gradle @@ -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 + } +}