Add code coverage support for robolectric tests

- To run robolectric tests with code coverage, run:
    make RunSettingsRoboTests-jacoco -j44
- Generated reports are placed under
   $OUT/obj/FAKE/RunSettingsRoboTests_intermediates/coverage

bug:32617403
Test: Ran manually, verified that reports are generated.

Change-Id: Ie51ab86c5fbaa9297d717167fda04a555dadbfe8
This commit is contained in:
Ajay Nadathur
2017-02-21 17:44:10 -08:00
parent d33651cf70
commit 4b4c812a02

View File

@@ -38,4 +38,6 @@ LOCAL_STATIC_JAVA_LIBRARIES := \
LOCAL_TEST_PACKAGE := Settings
LOCAL_INSTRUMENT_SOURCE_DIRS := $(dir $(LOCAL_PATH))../src
include prebuilts/misc/common/robolectric/run_robotests.mk