Skip to content

feat: Add options for screenshot threshold and kernel_size#401

Merged
gadenbuie merged 10 commits intomainfrom
feat/compare-screenshot-options
Feb 10, 2025
Merged

feat: Add options for screenshot threshold and kernel_size#401
gadenbuie merged 10 commits intomainfrom
feat/compare-screenshot-options

Conversation

@gadenbuie
Copy link
Copy Markdown
Member

Adds two new options:

  • shinytest2.compare_screenshot.threshold for compare_screenshot_threshold(threshold=)
  • shinytest2.compare_screenshot.kernel_size for compare_screenshot_threshold(kernel_size=)

Previously, these values required directly updating every app$expect_screenshot(). This option will allow for making global changes, e.g. in shinycoreci.

@gadenbuie gadenbuie requested a review from schloerke January 30, 2025 19:41
Copy link
Copy Markdown
Collaborator

@schloerke schloerke left a comment

Choose a reason for hiding this comment

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

If these changes look good to you, feel free to merge.

Thank you!

@gadenbuie gadenbuie merged commit 2b9e142 into main Feb 10, 2025
17 checks passed
@gadenbuie gadenbuie deleted the feat/compare-screenshot-options branch February 10, 2025 17:46
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.

2 participants