Skip to content

Releases: syrupy-project/syrupy

v0.3.3

02 Mar 02:28
a02baf9
Compare
Choose a tag to compare

Added

  • Add --snapshot-default-extension option to specify extension class via pytest cli (#132)

Fixed

  • Fix bug where snapshot diffs were erroneously printed (#135)
  • Fix bug where snapshot names were incorrectly matching tests (#136)
  • Fix bug where deleted snapshots where incorrectly colored (#136)
  • Fix bug where targeting specific test nodes did not filter out unused snapshots (#139)
  • Fix bug where snapshot report was printed out before the pytest report (#144)

v0.3.2

14 Feb 00:55
Compare
Choose a tag to compare

Fixed

  • Fix bug where untargeted snapshots would be deleted when using pytest in targeted mode (#123)
  • Fix bug where snapshot files were not cleaned up when running specific test files (#127)
  • Fix bug where targeting specific test nodes in a test file was not supported (#127)
  • Fix bug where targeting specific test modules using pyargs was not supported (#127)

v0.3.1

15 Jan 14:35
0dfdfd8
Compare
Choose a tag to compare

Fixed

  • Fix bug where newline control characters were being translated based on platform (#113)

v0.3.0

14 Jan 19:16
Compare
Choose a tag to compare

v0.3.0 (2020-02-14)

Breaking Changes

  • Add support for named tuple fields (#108)
  • Add trailing commas to class fields (#108)

Fixed

  • Specify explicit version range for pytest peer dependency (#111)

v0.2.0

13 Jan 01:06
57f1099
Compare
Choose a tag to compare

v0.2.0 (2020-02-12)

Breaking Changes

  • Remove _snapshot_subdirectory_name from SnapshotFossilizer (#99)

Added

  • Add support for custom objects repr (#101)
  • Add support for nested test classes (#99)

Fixed

  • Fix issue with using hashables as dict keys or in sets (#103)

v0.1.0 - Replace Serializer with Extension nomenclature

11 Jan 22:58
54b8de4
Compare
Choose a tag to compare

Breaking Changes

From #95, some highlights:

  • Rename snapshot.with_class to snapshot.use_extension(ExtensionClass)
  • Rename AbstractSnapshotSerializer -> AbstractSyrupyExtension
  • Replaced references to "filepath" with "location"
  • Replaced references to "cache" with "fossil"

v0.0.15 - Fix raw snapshot serializer discover snapshots

07 Jan 23:49
c7968fd
Compare
Choose a tag to compare

Fixed

  • Raw single should use the same name for snapshot and file

v0.0.14 - Add attr to declared dependencies

08 Jan 01:39
2f41347
Compare
Choose a tag to compare

Fixed

  • Add attrs package to declared dependencies

v0.0.13 - Pretty print snapshot failures with python difflib and colored

08 Jan 01:44
57e02e1
Compare
Choose a tag to compare

Added

  • Line diff snapshot failures with colors and character highlighting

v0.0.12 - Fail on unused snapshots, and break serializer cycles

29 Dec 15:21
Compare
Choose a tag to compare

Breaking Changes

  • Exit serialization early on detection of a cycle #78
  • Fail unused snapshots unless --snapshot-warn-unused is passed as CLI flag #77