Skip to content

Releases: theramis/Snapper

3.0.0-beta

02 Jan 07:05
Compare
Choose a tag to compare

Behaviour changes in V3 vs V2

  • Snapper now uses System.Text.Json rather than Newtonsoft.Json. This has a few small behavioural changes.
    • GlobalSnapshotSerialiserSettings and SnapshotSerialiserSettings will now be of type JsonSerializerOptions, which will require you to reconfigure any custom settings you have set.
    • Snapshot may be formatted differently due to differences between System.Text.Json and Newtonsoft.Json.
    • When using a malformed json string, previously an exception would have been thrown. In V3 the value is serialised as a string.
  • Support for Arrays and Primitives.
    • Previously these would be converted into a JSON object with the property name AutoGenerated, now they will be stored as is.

2.4.1

31 Dec 01:02
f90fab6
Compare
Choose a tag to compare

Added

  • Introduces the ability to update snapshots via Custom snapshot settings. This solves #104. Thanks to @ptjhuang for the contribution!

2.4.0

11 Dec 07:11
Compare
Choose a tag to compare

Added

  • Custom snapshot settings! This feature provides you with more control of your snapshots! See here for more details!
  • Updated CI environment detection to detect more CI tools.

Deprecated

  • Issue #98 Removed support for .NET Framework 4.5. .NET 45 has reached end of life by microsoft and is no longer supported. See here
  • The experimental feature called "Advanced snapshot file control" has been removed. This has been replaced by the custom snapshot settings which has been added as part of this release.

2.3.2

17 May 02:44
17acdfd
Compare
Choose a tag to compare

Bug Fix

2.3.1

06 Dec 07:02
Compare
Choose a tag to compare

Added

  • PR #86 Added support for NUnit TestCase and TestCaseSource attributes. Thanks to @jaytulk for the contribution.

2.3.0

11 Jan 08:52
Compare
Choose a tag to compare

Added

  • Issue #69 PR #71 Snapshots are now automatically generated on the first test run if the snapshot file does not exist.
  • Issue #57 PR #72 Introduced Matches.Snapshot() and Matches.ChildSnapshot() to Snapper.Nunit nuget package. Thanks to @lilasquared for the contribution.

Deprecated

  • Issue #57 PR #72 Deprecated Snapper.Nunit.Is.EqualToSnapshot() in Snapper.Nunit. This will be removed in Snapper V3. Thanks to @lilasquared for the contribution.

2.2.4

16 Mar 10:18
Compare
Choose a tag to compare

Added

  • PR #60 Experimental Feature: Advanced snapshot file control! Get more control over how and where the snapshot file is created. See here for more details.
    Fixes the following issues: #30 #48 #24.
  • PR #58 Snapper can now detect the Azure DevOps CI Environment. Thanks to @WarrenFerrell for the contribution.

Bug Fix

2.2.3

15 Feb 06:41
8adc834
Compare
Choose a tag to compare

Bug Fix

2.2.2

01 Feb 01:43
Compare
Choose a tag to compare

Bug Fix

  • Issue #50 PR #51 Fixed parsing of metadata properties so that they are treated as string by NewtonSoft. Thanks to @ViceIce for surfacing the issue.
  • Detection of an CI environment now checks for environment variables at the Machine, Process and User level. Previously it only checked at the Process level.

2.2.1

14 Jan 08:31
Compare
Choose a tag to compare

Bug Fix

  • Issue #44 PR #45 Fixed parsing of datetime strings so that they are treated as string by NewtonSoft. Thanks to @plitwinski for surfacing the issue.