syrupy-project / syrupy

:pancakes: The sweeter pytest snapshot plugin
https://syrupy-project.github.io/syrupy/
Apache License 2.0
553 stars 36 forks source link

feat: add option to disable diffing #924

Closed noahnu closed 4 days ago

noahnu commented 4 days ago

Description

For extremely large snapshot files, the diff algorithm is not very efficient. Until the algorithm can be modified to work with large files, there is now a --snapshot-diff-mode=disabled flag that can be specified to disable diffing on snapshot assertion failures.

Related Issues

Checklist

Additional Comments

No additional comments.

codecov[bot] commented 4 days ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #924      +/-   ##
==========================================
+ Coverage   97.74%   97.75%   +0.01%     
==========================================
  Files          21       21              
  Lines        1596     1604       +8     
==========================================
+ Hits         1560     1568       +8     
  Misses         36       36              

🚨 Try these New Features:

noahnu commented 4 days ago

:tada: This PR is included in version 4.8.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket: