Back to directory

Dropshots

Dropshots is a Gradle plugin and library that runs Android screenshot assertions on-device, inside your instrumentation tests, instead of pulling screenshots to a host machine for separate comparison.

Dropshots

Dropshots makes on-device screenshot testing easy for Android by performing screenshot assertions directly inside an instrumentation test, alongside the rest of a test suite, rather than pulling captured images to a host machine and comparing them in a separate step afterward. Its Gradle plugin ensures version-controlled reference images are available on the test device so a test's captured screenshots can be compared against them right there.

It installs by applying the com.dropbox.dropshots Gradle plugin, either through the plugins DSL with Maven Central added to the repositories list, or through the legacy buildscript classpath syntax. Once applied, new Gradle tasks create, validate and manage reference images and are wired automatically into a project's normal test task graph. Writing a test means adding the Dropshots JUnit rule to a standard Android instrumentation test and calling Dropshots.assertSnapshot to validate a captured view or activity against its stored reference image; running connectedAndroidTest then validates all such screenshots as part of the normal test run.

More in Testing

See all 69
  • Canary

    runcanary.ai

    An independent testing service, backed by Y Combinator, that runs an application and tries to break every change an AI coding agent makes, reporting what would have reached production.

  • MoEWatch

    github.com

    A diagnostic and audit library for Mixture-of-Experts models in HuggingFace Transformers that instruments router modules to catch expert collapse, routing entropy collapse and load imbalance during training.

  • Mockwave

    github.com

    An open-source, multi-protocol mock server for HTTP, GraphQL, SOAP, and gRPC, with weighted traffic splitting, dynamic JavaScript responses, chaos-testing fault injection, and an MCP server so an AI assistant can generate mock rules directly.