Files
app_Settings/tests/robotests/Android.mk
Matthew Fritze 7a78107332 Revert "Linked google truth to Robolectric tests and added an example."
This reverts commit 21f15a3280.

Change-Id: I07b978438b09c1a905eb58d2198913d21d552d6d
2016-09-14 00:33:31 +00:00

39 lines
1008 B
Makefile

#############################################
# Settings Robolectric test target. #
#############################################
LOCAL_PATH:= $(call my-dir)
include $(CLEAR_VARS)
LOCAL_SRC_FILES := $(call all-java-files-under, src)
# Include the testing libraries (JUnit4 + Robolectric libs).
LOCAL_STATIC_JAVA_LIBRARIES := \
platform-system-robolectric
LOCAL_JAVA_LIBRARIES := \
junit4-target \
platform-robolectric-prebuilt \
sdk_v23
LOCAL_APK_LIBRARIES = Settings
LOCAL_MODULE := SettingsRoboTests
LOCAL_MODULE_TAGS := optional
include $(BUILD_STATIC_JAVA_LIBRARY)
#############################################################
# Settings runner target to run the previous target. #
#############################################################
include $(CLEAR_VARS)
LOCAL_MODULE := RunSettingsRoboTests
LOCAL_SDK_VERSION := current
LOCAL_STATIC_JAVA_LIBRARIES := \
SettingsRoboTests
LOCAL_TEST_PACKAGE := Settings
include prebuilts/misc/common/robolectric/run_robotests.mk