summaryrefslogtreecommitdiff
path: root/platform/android/MapboxGLAndroidSDKRenderTest/README.md
blob: f59134c0d5b0277a5476986ffdf5793769ec1c1f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# Install

Run `yarn install` from the root of this module to pull in external dependencies.

# Generate

Generate tests with `yarn gen`:
 - copies style.json, expected image to `src/main/assets`
 - generates instrumentation tests in `src/androidTest`
 
# Build

Build tests with `yarn build`, this generates 2 apks files that can be uploaded to cloud testing services in `build/outputs/apk`.
 
# Run

Run tests locally on a device with `yarn test`. 

# Retrieve test results

Use `yarn pull` to retrieve test results stored in `sdcard/mapbox/render` from the test device and store them in `build/outputs/render`.

# Pixelmatch

Use `yarn pixelmatch` to run [pixelmatch](https://github.com/mapbox/pixelmatch) on `build/outputs/render` subdirectories.

# Clean

Run `yarn clean` to cleanup build, tests and assets.