Skip to content
This repository was archived by the owner on Aug 21, 2025. It is now read-only.

Latest commit

 

History

History
49 lines (32 loc) · 1.37 KB

File metadata and controls

49 lines (32 loc) · 1.37 KB

Here you can find an in-depth overview of the inner workings of Gravatar for Android. It is designed for contributors and maintainers who want to understand the app's architecture, design decisions, and implementation details. This document covers key topics such as structure, testing, release process, and more. Whether you're debugging, extending functionality, or simply exploring the codebase, this guide will help you navigate and work effectively with the project's technical foundations.

Testing

Unit Testing

To run unit tests, use the following command:

./gradlew testDebug

Screenshot Testing

The project uses Roborazzi for screenshot testing. Screenshots are saved in the screenshotTests/roborazzi directory of each module.

To run screenshot tests:

  1. Execute the tests with the screenshot parameter
  2. Check the generated screenshots in the output directory

Example:

./gradlew verifyRoborazziDebug -Pscreenshot 
./gradlew :homeUi:verifyRoborazziDebug -Pscreenshot

If you need to update the screenshots, use the recordRoborazziDebug task:

./gradlew recordRoborazziDebug -Pscreenshot
./gradlew :homeUi:recordRoborazziDebug -Pscreenshot

Code Style

Detekt

The project uses Detekt for static code analysis with the Ktlint wrapper. To run Detekt:

./gradlew detekt

or

./gradlew detekt --auto-correct