Skip to content

tdrhq/screenshotbot-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

95 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Screenshotbot example with screenshot-tests-for-android

Screenshots

This repository is an example of how to integration screenshot-tests-for-android with Screenshotbot.

In this particular example, we use Firebase Test Lab for emulators, and run the tests on CircleCI.

See .circleci/config.yml to see the steps required for configuration.

To translate this to a different CI you need to do a few steps

  • First, make sure that your image has gcloud tool, install it if required.

  • Call gcloud auth activate-service-account to authenticate gcloud. You'll need a service user key from the Google Cloud console.

  • Use gcloud firebase test android run to run your Instrumentation tests. Use --directories-to-pull to pull the images from the sdcard. Use --results-bucket to specify the google cloud storage bucket to store the results in. For now we only support one --device-id at a time.

  • The screenshotbot CLI tool can parse the output from the previous command. It can figure out where to pull the screenshots from Google Cloud Storage, and delete the artifacts so you don't incur charges.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published