Leanplum / Leanplum-Android-SDK

Leanplum's integrated solution delivers meaningful engagement across messaging and the in-app experience.
https://www.leanplum.com
Apache License 2.0
46 stars 40 forks source link

Add snapshot testing framework #400

Closed hborisoff closed 4 years ago

hborisoff commented 4 years ago
What Where/Who
JIRA Issue E2-2127
People Involved @hborisoff

Background

This PR is adding support for snapshot tests in SDK. It uses the Facebook developed library - screenshot-tests-for-android.

Android emulator with API 22 (ARM architecture) is chosen after testing other emulator versions. Added code to create and start it in the Travis build script. Wrote AndroidSDKTests/README.md on how to execute and record tests.

Tests for most of the message templates are written but there are couple of them which are not testable with current implementation - Alert and Confirm.