This is a project of me playing with Shot - a Gradle plugin and a core android library thought to run screenshot tests for Android.
How to run the snapshot test?
- run this gradle script
./gradlew executeScreenshotTests -Precord
to record your screenshots (this screenshots will be used as the expected result) - do some changes on the ui or you can keep the ui as it is
- run
./gradlew executeScreenshotTests
to verify your new ui is it match with the expected result or not. - you can see the result of the test in
/app/build/report/shot/verification/index.html
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
Anang Kurniawan