Update code coverage

This commit is contained in:
2017-04-14 10:56:38 -04:00
parent b4e79c3f4b
commit 13b4128777
2 changed files with 5 additions and 2 deletions

View File

@@ -14,6 +14,9 @@ fail() {
exit 1
}
info "Running adb as root..."
adb root
info "Cleaning output directory..."
rm -rf ${OUTPUT_DIR}
mkdir -p ${OUTPUT_DIR}
@@ -53,7 +56,7 @@ adb logcat -d > ${OUTPUT_DIR}/logcat.txt
info "Building coverage report..."
mkdir -p ${OUTPUT_DIR}/code-coverage/connected/
adb pull /data/data/${PACKAGE_NAME}/files/coverage.ec \
adb pull /data/user/0/${PACKAGE_NAME}/files/coverage.ec \
${OUTPUT_DIR}/code-coverage/connected/ >> $LOG 2>> $LOG
./gradlew app:createDebugCoverageReport \
-x app:connectedDebugAndroidTest >> $LOG 2>> $LOG