Skip to content

This is a project of me playing with Shot - a Gradle plugin and a core android library thought to run screenshot tests for Android.

Notifications You must be signed in to change notification settings

anangkur/android-snapshot-testing-playground

Repository files navigation


Screenshot Test Playground

This is a project of me playing with Shot - a Gradle plugin and a core android library thought to run screenshot tests for Android.


Table of Contents

About

How to run the snapshot test?

  1. run this gradle script ./gradlew executeScreenshotTests -Precord to record your screenshots (this screenshots will be used as the expected result)
  2. do some changes on the ui or you can keep the ui as it is
  3. run ./gradlew executeScreenshotTests to verify your new ui is it match with the expected result or not.
  4. you can see the result of the test in /app/build/report/shot/verification/index.html

result examples: failing test

success test

Built With

Contributing

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

Contact

Anang Kurniawan

LinkedInMediumDribbbleTwitterInstagram

About

This is a project of me playing with Shot - a Gradle plugin and a core android library thought to run screenshot tests for Android.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages