anangkur / android-snapshot-testing-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.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool


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.


Languages

Language:Kotlin 100.0%