к каталогу

📦 roborazzi/ takahirom

Make JVM Android integration test visible 🤖📸

Открыть на GitHubобновлён 4д назад
Звёзды
984
Форки
54
За неделю
За месяц
Рост %
Язык
Kotlin

Установка и запуск

Run tasks

<table> <tr> <td> Use Roborazzi task </td> <td> Use default unit test task </td> <td> Description </td> </tr> <tr> <td>

./gradlew recordRoborazziDebug

</td><td>

./gradlew testDebugUnitTest after adding roborazzi.test.record=true to your gradle.properties file.

or

./gradlew testDebugUnitTest -Proborazzi.test.record=true

</td><td>

Record a screenshot
Default output directory is build/outputs/roborazzi
You can check a report under build/reports/roborazzi/index.html

</td> </tr> <tr> <td>

./gradlew compareRoborazziDebug

</td><td>

./gradlew testDebugUnitTest after adding roborazzi.test.compare=true to your gradle.properties file.

or

./gradlew testDebugUnitTest -Proborazzi.test.compare=true

</td><td>

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.

</td> </tr> <tr> <td>

./gradlew verifyRoborazziDebug

</td><td>

./gradlew testDebugUnitTest after adding roborazzi.test.verify=true to your gradle.properties file.

or

./gradlew testDebugUnitTest -Proborazzi.test.verify=true

</td><td>

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

</td><td>

./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

</td><td>

Из README репозитория · полный README на GitHub

Категории

Теги

androidcomposecompose-desktopcompose-multiplatformtesting