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: only perform session finish on test items actually ran #401

Merged
merged 1 commit into from
Oct 30, 2020

Conversation

iamogbz
Copy link
Collaborator

@iamogbz iamogbz commented Oct 30, 2020

Description

Interrupting a test run leads to syrupy assuming all selected but untouched snapshots are unused and should be marked as candidates for deletion.

Before

Screen Shot 2020-10-29 at 11 53 52 PM

After

Screen Shot 2020-10-29 at 11 53 16 PM

Checklist

  • This PR has sufficient documentation.
  • This PR has sufficient test coverage.
  • This PR title satisfies semantic convention.

Additional Comments

  • Needs some way to test this

@codecov
Copy link

codecov bot commented Oct 30, 2020

Codecov Report

Merging #401 into master will not change coverage.
The diff coverage is n/a.

@@            Coverage Diff            @@
##            master      #401   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           17        17           
  Lines          992       992           
=========================================
  Hits           992       992           

@iamogbz iamogbz requested a review from noahnu October 30, 2020 04:56
@iamogbz iamogbz marked this pull request as ready for review October 30, 2020 04:57
Copy link
Collaborator

@noahnu noahnu left a comment

Choose a reason for hiding this comment

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

Not sure how you'd even go about testing this.

@iamogbz iamogbz merged commit 61a670f into master Oct 30, 2020
@iamogbz iamogbz deleted the fix-do-not-delete-unrun-tests branch October 30, 2020 14:26
syrupy-bot pushed a commit that referenced this pull request Oct 30, 2020
## [0.8.3](v0.8.2...v0.8.3) (2020-10-30)

### Bug Fixes

* assertion exception shows error at correct location ([#402](#402)) ([d46bba4](d46bba4))
* only perform session finish on test items ran ([#401](#401)) ([61a670f](61a670f))
@syrupy-bot
Copy link
Contributor

🎉 This PR is included in version 0.8.3 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

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.

3 participants