📦 roborazzi/ takahirom
Make JVM Android integration test visible 🤖📸
Установка и запуск
Run tasks
<table> <tr> <td> Use Roborazzi task </td> <td> Use default unit test task </td> <td> Description </td> </tr> <tr> <td>./gradlew recordRoborazziDebug
./gradlew testDebugUnitTest after adding roborazzi.test.record=true to your gradle.properties file.
or
./gradlew testDebugUnitTest -Proborazzi.test.record=true
Record a screenshot
Default output directory is build/outputs/roborazzi
You can check a report under build/reports/roborazzi/index.html
./gradlew compareRoborazziDebug
./gradlew testDebugUnitTest after adding roborazzi.test.compare=true to your gradle.properties file.
or
./gradlew testDebugUnitTest -Proborazzi.test.compare=true
Review changes made to an image. This action will
compare the current image with the saved one, generating a comparison image labeled
as [original]_compare.png. It also produces a JSON file containing the diff information, which can
be found under build/test-results/roborazzi.
./gradlew verifyRoborazziDebug
./gradlew testDebugUnitTest after adding roborazzi.test.verify=true to your gradle.properties file.
or
./gradlew testDebugUnitTest -Proborazzi.test.verify=true
Validate changes made to an image. If there is any difference between the current image and the saved one, the test will fail.
</td> </tr> <tr> <td>./gradlew verifyAndRecordRoborazziDebug
./gradlew testDebugUnitTest after adding roborazzi.test.verify=true and roborazzi.test.record=true to your gradle.properties file.
or
./gradlew testDebugUnitTest -Proborazzi.test.verify=true -Proborazzi.test.record=true
…
Из README репозитория · полный README на GitHub