Releases: theramis/Snapper
Releases · theramis/Snapper
3.0.0-beta
Behaviour changes in V3 vs V2
- Snapper now uses
System.Text.Json
rather thanNewtonsoft.Json
. This has a few small behavioural changes.GlobalSnapshotSerialiserSettings
andSnapshotSerialiserSettings
will now be of typeJsonSerializerOptions
, which will require you to reconfigure any custom settings you have set.- Snapshot may be formatted differently due to differences between
System.Text.Json
andNewtonsoft.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.
- Previously these would be converted into a JSON object with the property name
2.4.1
2.4.0
Added
- Custom snapshot settings! This feature provides you with more control of your snapshots! See here for more details!
- This also fixes/solves the following issues: Issue #100, Issue #93, Issue #84, Issue #83 and Issue #79
- 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
2.3.1
2.3.0
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()
andMatches.ChildSnapshot()
toSnapper.Nunit
nuget package. Thanks to @lilasquared for the contribution.
Deprecated
- Issue #57 PR #72 Deprecated
Snapper.Nunit.Is.EqualToSnapshot()
inSnapper.Nunit
. This will be removed in Snapper V3. Thanks to @lilasquared for the contribution.
2.2.4
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
2.2.2
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
andUser
level. Previously it only checked at theProcess
level.