{"repo":"pedrovgs/Shot","free":true,"listed":false,"github":"https://github.com/pedrovgs/Shot","clone":"git clone https://github.com/pedrovgs/Shot.git","description":"Screenshot testing library for Android","language":"Kotlin","stars":1206,"topics":["android","gradle-plugin","screenshot-tests","java","testing","testing-tools","jetpack-compose"],"license":"Apache-2.0","category":"mobile-apps","readme_excerpt":"![Karumi logo][karumilogo]Shot 🔝 Top sponsors 🔝 Shot is an Android project you can use to write screenshot for your apps in a simple and friendly way. What is this? Shot is a Gradle plugin and a core android library thought to run screenshot tests for Android. This project provides a handy interface named ScreenshotTest and a ready to use ShotTestRunner you can use in order to write tests like these: Since Shot 5.0.0 we provide screenshot testing support for Jetpack Compose. If you are testing your components using Shot we strongly recommend you to configure your emulator using the gpu mode swiftshader indirect . This will help you to avoid rendering issues when verifying your screenshots from any CI environment. Record your screenshots executing ./gradlew executeScreenshotTests -Precord And verify your tests executing ./gradlew executeScreenshotTests If Shot finds any error in your tests execution the Gradle plugin will show a report as follows: You can find the complete Facebook SDK documentation here. Getting started Setup the Gradle plugin: Modify your root build.gradle file: Apply the plugin from any of the modules configured in your project. In a simple Android app your app/build.gradle file: You will also have to configure the instrumentation test runner in your module build.gradle file as follows: We created this test runner for you extending from the Android one. This plugin sets up a few convenience commands you can list executing ./gradlew tasks and reviewing the","default_branch":null,"files":null,"tree":[],"storefront":"/r/pedrovgs","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/pedrovgs/Shot/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}