Skip to content

Add Paparazzi preview tests and update dependencies#1298

Merged
mikepenz merged 3 commits intodevelopfrom
feature/paparazzi
Feb 1, 2026
Merged

Add Paparazzi preview tests and update dependencies#1298
mikepenz merged 3 commits intodevelopfrom
feature/paparazzi

Conversation

@mikepenz
Copy link
Owner

@mikepenz mikepenz commented Feb 1, 2026

This PR adds Paparazzi preview tests to the project and includes necessary dependency updates.

Changes

  • Add Paparazzi preview tests
  • Update dependencies
  • Update CI configuration and migration notes for Java 21 support
  • Include screenshots

Copilot AI review requested due to automatic review settings February 1, 2026 18:07
@mikepenz mikepenz added the test label Feb 1, 2026
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 adds Paparazzi preview testing infrastructure to the project and updates dependencies to support Java 21. The changes enable automated visual regression testing of Compose previews.

Changes:

  • Added Paparazzi test infrastructure with parameterized tests for Compose previews
  • Updated version catalog from 0.12.0 to 0.12.3
  • Migrated project to Java 21 (breaking change) to support Paparazzi requirements
  • Updated CI workflows to include Java 21 in the build matrix
  • Added screenshot baseline images for Paparazzi tests
  • Updated .gitignore to exclude gradle-user-home directory

Reviewed changes

Copilot reviewed 7 out of 22 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
settings.gradle.kts Updated version catalog dependency from 0.12.0 to 0.12.3
sample/android/build.gradle.kts Commented out auto-generated Paparazzi configuration (tests manually written)
sample/android/src/test/kotlin/generated/paparazzi/tests/GeneratedComposablePreviewPaparazziTests.kt Added comprehensive Paparazzi test infrastructure with device config builder, snapshot handlers, and parameterized tests
gradle.properties Added Java 21 version configuration property
MIGRATION.md Documented breaking change for Java 21 requirement
.gitignore Added gradle-user-home directory to exclusions
.github/workflows/*.yml Updated CI workflows to include Java 21 in build matrix
sample/android/src/test/snapshots/images/*.png Added Paparazzi snapshot baseline images (binary files)

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

Comment on lines +137 to +145
- name: Publish Test Report
if: false && (failure() || success()) && github.event_name == 'pull_request'
uses: mikepenz/action-junit-report@v6
with:
report_paths: '**/sample/android/build/test-results/testDebugUnitTest/TEST-*.xml'
github_token: ${{ secrets.GITHUB_TOKEN }}
fail_on_failure: true
annotate_only: true
detailed_summary: true
Copy link

Copilot AI Feb 1, 2026

Choose a reason for hiding this comment

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

The test report publishing step is disabled with if: false. This means test results won't be published to the PR even if tests fail or succeed. Consider enabling this by changing to if: (failure() || success()) && github.event_name == 'pull_request' to provide better visibility into test results in pull requests.

Copilot uses AI. Check for mistakes.
Comment on lines +39 to +47
/*
composablePreviewPaparazzi {
enable = true
packages = listOf("com.mikepenz.aboutlibraries.screenshot")
includePrivatePreviews = false
testClassName = "PaparazziTests"
testPackageName = "com.mikepenz.aboutlibraries.screenshot.generated.tests"
}
*/
Copy link

Copilot AI Feb 1, 2026

Choose a reason for hiding this comment

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

The composablePreviewPaparazzi configuration block is commented out, but the plugin com.mikepenz.convention.composable-preview-scanner.paparazzi-plugin is still applied at line 10. If the plugin is not being used to auto-generate tests (since the test file appears to be manually written), consider whether the plugin should also be removed or if this is intentional for future use.

Copilot uses AI. Check for mistakes.
@mikepenz mikepenz merged commit 7ad451e into develop Feb 1, 2026
4 checks passed
@mikepenz mikepenz deleted the feature/paparazzi branch February 1, 2026 18:49
Repository owner deleted a comment from whitemike889 Feb 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants