Skip to content

Conversation

@alex-amenos
Copy link
Owner

@alex-amenos alex-amenos commented Oct 27, 2025

⚡️ Proposed Changes

  • Migrate screenshot testing framework

ℹ️ Additional Info

  • Add any additional useful context or info

🔗 Related Links

✅ Checklist

  • Unit Tests
  • Integration Tests
  • Compose Tests
  • Screenshot Tests
  • Maestro Tests
  • Updated string
  • Manually tested

📷 Screenshots

@alex-amenos alex-amenos self-assigned this Oct 27, 2025
Copilot AI review requested due to automatic review settings October 27, 2025 23:23
@alex-amenos alex-amenos added the WIP Work In Progres label Oct 27, 2025
@alex-amenos alex-amenos linked an issue Oct 27, 2025 that may be closed by this pull request
@alex-amenos alex-amenos requested review from Copilot and removed request for Copilot October 27, 2025 23:23
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR migrates screenshot testing from Android's experimental screenshot testing framework to Roborazzi, a more mature and widely-adopted screenshot testing library built on Robolectric.

Key changes include:

  • Replacing the experimental Android Compose screenshot testing library with Roborazzi
  • Upgrading Java compilation target from version 17 to version 21
  • Refactoring screenshot tests from preview-based approach to explicit test cases using Robolectric

Reviewed Changes

Copilot reviewed 21 out of 66 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
gradle/libs.versions.toml Replaced android-compose-screenshot dependencies with Roborazzi and Robolectric libraries; updated Mockito versions
gradle.properties Removed experimental screenshot testing flag
feature/settings/src/screenshotTest/* Removed all screenshot test files from the screenshotTest directory
feature/settings/src/androidTest/java/* Removed all androidTest compose test files
feature/posts/src/test/kotlin/* Added new Roborazzi-based screenshot tests for Posts and PostDetail screens
feature/posts/src/screenshotTest/java/* Removed preview-based screenshot test files
feature/posts/src/main/java/*/PostsScreenPreviewProvider.kt Renamed preview provider class for consistency
feature/posts/src/main/java/*/PostScreen.kt Updated import to use renamed preview provider
feature/authentication/src/androidTest/* Removed authentication route test file
buildSystem/gradle/common-app-base.gradle Updated Java version from 17 to 21
buildSystem/gradle/common-android-compose.gradle Replaced screenshot testing plugin with Roborazzi; moved test dependencies from screenshotTest to test source set
buildSystem/gradle/common-android-base.gradle Updated Java version from 17 to 21
.github/workflows/android_ci.yml Added Roborazzi verification step to CI workflow

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@alex-amenos alex-amenos changed the title [REFACTOR] Migrate Screenshot testing [REFACTOR] Migrate screenshot testing Oct 27, 2025
@alex-amenos alex-amenos changed the title [REFACTOR] Migrate screenshot testing [REFACTOR] Migrate screenshot testing framework Oct 27, 2025
… to replace 'Snapshot Tests' and 'Maestro Tests' with 'Screenshot Tests'
@alex-amenos alex-amenos force-pushed the refactor/screenshoot_testing branch from 6c03bec to 196ba2d Compare October 27, 2025 23:28
Comment on lines 34 to 39
testImplementation(platform(libs.junit.bom))
testImplementation libs.androidx.compose.ui.tooling
testImplementation libs.junit.platform.launcher
testImplementation libs.junit.jupiter.engine
testImplementation libs.junit.vintage.engine

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it really needed?

@alex-amenos alex-amenos force-pushed the refactor/screenshoot_testing branch from bdb10c9 to 219b191 Compare November 19, 2025 19:50
@alex-amenos alex-amenos merged commit 3977c96 into main Nov 19, 2025
1 check passed
@alex-amenos alex-amenos deleted the refactor/screenshoot_testing branch November 19, 2025 22:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

WIP Work In Progres

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Replace current Screenshoot testing

1 participant