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

Fix false positive when asserting reference image with empty image #453

Conversation

nuno-vieira
Copy link
Contributor

@nuno-vieira nuno-vieira commented Apr 8, 2021

Hello 👋

Bug Description

Unfortunately in the project that I'm working on, we encountered some false positives, where we thought that the tests were actually working, but they were not. What happened was that after some refactorings, some of the tests passed, but actually, the new reference images were the red empty image and the framework assumed that everything was okay.

In order to unit test this, I previously recorded a snapshot with content, and then verify against an empty view and check that it fails.

Fixes: #454, a duplicate of #414

@nuno-vieira nuno-vieira force-pushed the fix-false-positive-when-new-snapshot-is-empty branch from e9840db to 69489a9 Compare April 8, 2021 19:12
@nuno-vieira nuno-vieira changed the title Fix false positive when asserting old image with new empty image Fix false positive when asserting reference image with empty image Apr 8, 2021
@nuno-vieira
Copy link
Contributor Author

@mbrandonw @stephencelis Any update on this, please? 🙏

@Fab1n
Copy link

Fab1n commented Feb 25, 2022

@mbrandonw @stephencelis Any update on this, please?

Copy link

@Fab1n Fab1n left a comment

Choose a reason for hiding this comment

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

This looks very good in my eyes. Any concerns from the authors?

Copy link

@Fab1n Fab1n left a comment

Choose a reason for hiding this comment

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

Now I got the review right

Copy link
Member

@stephencelis stephencelis left a comment

Choose a reason for hiding this comment

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

Thanks!

@stephencelis stephencelis merged commit e408bf9 into pointfreeco:main Sep 22, 2022
niil-qb pushed a commit to quickbit/swift-snapshot-testing that referenced this pull request Feb 23, 2023
Muhieddine-El-Kaissi pushed a commit to thumbtack/swift-snapshot-testing that referenced this pull request Aug 8, 2024
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.

False positive assertion when comparing reference with empty image
4 participants