summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorŁukasz Paczos <lukas.paczos@gmail.com>2019-03-19 13:32:06 +0100
committerŁukasz Paczos <lukasz.paczos@mapbox.com>2019-03-19 17:59:32 +0100
commit10404e29af5068c5977d9a0dbc759c11777cdbf5 (patch)
tree7eb2d028bf45e073642ff8963aa6667a1cac2fc8 /Makefile
parent40458177b7a03b32fd72ea7cdc685efc2349b6ac (diff)
downloadqtlocation-mapboxgl-10404e29af5068c5977d9a0dbc759c11777cdbf5.tar.gz
[android] unit and instrumentation tests code coverage report
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile11
1 files changed, 11 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index ecc4273cff..a6aa414068 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,5 @@
export BUILDTYPE ?= Debug
+export IS_LOCAL_DEVELOPMENT ?= true
export WITH_CXX11ABI ?= $(shell scripts/check-cxx11abi.sh)
ifeq ($(BUILDTYPE), Release)
@@ -691,6 +692,16 @@ run-android-unit-test: platform/android/gradle/configuration.gradle
run-android-unit-test-%: platform/android/gradle/configuration.gradle
cd platform/android && $(MBGL_ANDROID_GRADLE) -Pmapbox.abis=none :MapboxGLAndroidSDK:testDebugUnitTest --info --tests "$*"
+# Run unit test and build a coverage report from .exec file generated by unit tests and .ec file generated by instrumentation tests
+.PHONY: android-create-jacoco-report
+android-create-jacoco-report: platform/android/gradle/configuration.gradle
+ cd platform/android && $(MBGL_ANDROID_GRADLE) -Pmapbox.abis=none :MapboxGLAndroidSDK:jacocoTestReport
+
+# Parse merged jacoco report and send it to S3
+.PHONY: android-parse-and-send-jacoco-report
+android-parse-and-send-jacoco-report:
+ python platform/android/scripts/parse-jacoco-report.py
+
# Builds a release package of the Android SDK
.PHONY: apackage
apackage: platform/android/gradle/configuration.gradle