Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move plugin tests from testDebug to verifyPaparazziDebug to use same diffing execution path #1504

Merged
merged 2 commits into from
Jul 15, 2024

Conversation

jrodbx
Copy link
Collaborator

@jrodbx jrodbx commented Jul 12, 2024

This PR has two commits.

The first is the main objective: moving a bunch of tests from testDebug to using verifyPaparazziDebug in order to wean off the bespoke ImageSubject test class. This requires moving golden images from src/test/resources to src/test/snapshots/images per the convention.

In addition, this PR also:

Groups related tests into one:

  • { customFontsInXml, customFontsInCode }
  • { textAppearancesInCode, textAppearancesInXml }
  • { verifyAaptAttrResourceParsingInCode, verifyAaptAttrResourceParsingInXml, verifyAaptAttrResourceParsingInCompose }
  • { nightModeCompose, nightModeXml }

And, extracts a new test composeLeaks to separately run "testDebug", allowing its previous home (compose) to run verifyPaparazziDebug without the need for dummy golden images.

@jrodbx jrodbx requested review from gamepro65 and geoff-powell July 12, 2024 19:38
@jrodbx jrodbx changed the title Move tests from testDebug to verifyPaparazziDebug to use same diffing execution path Move plugin tests from testDebug to verifyPaparazziDebug to use same diffing execution path Jul 12, 2024
@jrodbx jrodbx force-pushed the jrod/2024-07-12/move-tests branch from d9485b0 to 5297abf Compare July 12, 2024 20:11
Copy link
Collaborator

@geoff-powell geoff-powell Jul 15, 2024

Choose a reason for hiding this comment

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

nit: looks like that App theme for this test may have changed. The navigation icons are different.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Actually this might be expected after this change.

Copy link
Collaborator

@gamepro65 gamepro65 left a comment

Choose a reason for hiding this comment

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

Nice

@jrodbx jrodbx merged commit c410c64 into master Jul 15, 2024
14 checks passed
@jrodbx jrodbx deleted the jrod/2024-07-12/move-tests branch July 15, 2024 18:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants