Skip to content

Feature request: return match percent from comparePdfToSnapshot #93

Description

@vaernion

Currently comparePdfToSnapshot returns true/false and we have to look at the generated heatmap diff to know how much they differed.

If comparePdfToSnapShot could return the equivalent of tolerance [0..1] as well it would be easier to calibrate the appropiate tolerance to use as well as programatically log the difference etc.

It would be a breaking change to make comparePdfToSnapshot return for example { matched: boolean, difference: number}, but maybe worth it?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions