summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorlangsmith <langstonlmcs@gmail.com>2019-03-07 17:08:48 -0800
committerlangsmith <langstonlmcs@gmail.com>2019-03-12 18:21:47 -0700
commit975936f370cb17811e388105c9066c8a2c7ad6a0 (patch)
treef9d7fa7edd5e28abb897efefb51d2720f6dcb7dd /Makefile
parent565792606d5d03d0cc9889f112bb50345c899005 (diff)
downloadqtlocation-mapboxgl-975936f370cb17811e388105c9066c8a2c7ad6a0.tar.gz
[android] initial android code coverage additionsupstream/ls-adding-android-code-cov
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 10 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index ecc4273cff..914289c56f 100644
--- a/Makefile
+++ b/Makefile
@@ -731,6 +731,16 @@ android-check : android-checkstyle android-lint-sdk android-lint-test-app
android-checkstyle: platform/android/gradle/configuration.gradle
cd platform/android && $(MBGL_ANDROID_GRADLE) -Pmapbox.abis=none :MapboxGLAndroidSDK:checkstyle :MapboxGLAndroidSDKTestApp:checkstyle
+# Runs unit test code coverage on the Android code
+.PHONY: android-unit-test-code-coverage
+android-unit-test-code-coverage: platform/android/gradle/configuration.gradle
+ cd platform/android && $(MBGL_ANDROID_GRADLE) -Pmapbox.abis=all clean :MapboxGLAndroidSDK:jacocoTestReportDebug
+
+# Runs unit test code coverage on the Android code
+.PHONY: android-code-coverage-report-to-text-file
+android-code-coverage-report-to-text-file: platform/android/gradle/configuration.gradle
+ textutil -convert txt platform/android/MapboxGLAndroidSDK/build/reports/jacoco/debug/index.html
+
# Runs lint on the Android SDK code
.PHONY: android-lint-sdk
android-lint-sdk: platform/android/gradle/configuration.gradle