Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: VerifyTests/Verify
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 28.11.0
Choose a base ref
...
head repository: VerifyTests/Verify
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 28.12.0
Choose a head ref

Commits on Feb 14, 2025

  1. Docs changes

    actions-user committed Feb 14, 2025
    Copy the full SHA
    c635513 View commit details
  2. refs

    SimonCropp committed Feb 14, 2025
    Copy the full SHA
    5cdba03 View commit details
  3. Docs changes

    actions-user committed Feb 14, 2025
    Copy the full SHA
    11e93bb View commit details

Commits on Feb 15, 2025

  1. Copy the full SHA
    1499b03 View commit details

Commits on Feb 17, 2025

  1. Copy the full SHA
    3e89e1a View commit details

Commits on Feb 19, 2025

  1. refs or cleanup

    SimonCropp committed Feb 19, 2025
    Copy the full SHA
    b3661d5 View commit details

Commits on Feb 21, 2025

  1. Update readme.source.md

    SimonCropp committed Feb 21, 2025
    Copy the full SHA
    353e622 View commit details
  2. Copy the full SHA
    0d647a1 View commit details
  3. Docs changes

    actions-user committed Feb 21, 2025
    Copy the full SHA
    d273efc View commit details

Commits on Feb 22, 2025

  1. target net10

    SimonCropp committed Feb 22, 2025
    Copy the full SHA
    be06258 View commit details
  2. Revert "target net10"

    This reverts commit be06258.
    SimonCropp committed Feb 22, 2025
    Copy the full SHA
    810e8d9 View commit details
  3. numeric id sample

    SimonCropp committed Feb 22, 2025
    Copy the full SHA
    55282d4 View commit details
  4. .

    SimonCropp committed Feb 22, 2025
    Copy the full SHA
    83b7e7b View commit details
  5. .

    SimonCropp committed Feb 22, 2025
    Copy the full SHA
    6925e78 View commit details
  6. .

    SimonCropp committed Feb 22, 2025
    Copy the full SHA
    ea1e223 View commit details
  7. Copy the full SHA
    7833fb2 View commit details
  8. refs

    SimonCropp committed Feb 22, 2025
    Copy the full SHA
    6b2a6f9 View commit details
  9. Docs changes

    actions-user committed Feb 22, 2025
    Copy the full SHA
    db2d7ab View commit details
  10. docs

    SimonCropp committed Feb 22, 2025
    Copy the full SHA
    3f8894d View commit details
  11. Copy the full SHA
    97bc24b View commit details

Commits on Feb 23, 2025

  1. Add net10 support (#1406)

    SimonCropp authored Feb 23, 2025
    Copy the full SHA
    b5d8755 View commit details
Showing 364 changed files with 1,056 additions and 888 deletions.
8 changes: 4 additions & 4 deletions docs/build-server.md
Original file line number Diff line number Diff line change
@@ -48,7 +48,7 @@ Directly after the test runner step add a build step to set a flag if the testru
displayName: 'Set flag to publish Verify *.received.* files when test step fails'
condition: failed()
inputs:
script: 'echo ##vso[task.setvariable variable=publishverify]Yes'
script: 'echo "##vso[task.setvariable variable=publishverify]Yes"'
```
Since the PublishBuildArtifacts step in DevOps does not allow a wildcard it is necessary to stage the 'received' files before publishing:
@@ -58,8 +58,8 @@ Since the PublishBuildArtifacts step in DevOps does not allow a wildcard it is n
condition: eq(variables['publishverify'], 'Yes')
displayName: 'Copy Verify *.received.* files to Artifact Staging'
inputs:
contents: '**\*.received.*'
targetFolder: '$(Build.ArtifactStagingDirectory)\Verify'
contents: '**/*.received.*'
targetFolder: '$(Build.ArtifactStagingDirectory)/Verify'
cleanTargetFolder: true
overWrite: true
```
@@ -72,7 +72,7 @@ Publish the staged files as a build artifact:
name: 'verifypublish'
condition: eq(variables['publishverify'], 'Yes')
inputs:
PathtoPublish: '$(Build.ArtifactStagingDirectory)\Verify'
PathtoPublish: '$(Build.ArtifactStagingDirectory)/Verify'
ArtifactName: 'Verify'
publishLocation: 'Container'
```
9 changes: 9 additions & 0 deletions docs/mdsource/numeric-ids.source.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Numeric Ids

Numbers are not scrubbed. Sometimes it is helpful to scrub numeric Ids. This can be done using `ScrubMembers` and checking the DeclaringType and the name of the member.

snippet: NumericIdSample

Produces

snippet: NumericIdSample.Test.verified.txt
3 changes: 2 additions & 1 deletion docs/mdsource/scrubbers.source.md
Original file line number Diff line number Diff line change
@@ -168,4 +168,5 @@ snippet: Verify.Xunit.Tests/Scrubbers/ScrubberLevelsSample.Usage.verified.txt
## See also

* [Guid behavior](guids.md)
* [Date behavior](dates.md)
* [Date behavior](dates.md)
* [Numeric Ids](numeric-ids.md)
60 changes: 60 additions & 0 deletions docs/numeric-ids.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
<!--
GENERATED FILE - DO NOT EDIT
This file was generated by [MarkdownSnippets](https://github.com/SimonCropp/MarkdownSnippets).
Source File: /docs/mdsource/numeric-ids.source.md
To change this file edit the source file and then run MarkdownSnippets.
-->

# Numeric Ids

Numbers are not scrubbed. Sometimes it is helpful to scrub numeric Ids. This can be done using `ScrubMembers` and checking the DeclaringType and the name of the member.

<!-- snippet: NumericIdSample -->
<a id='snippet-NumericIdSample'></a>
```cs
public class NumericIdSample
{
public class Target : IHasId
{
public required int Id { get; init; }
public required string Name { get; init; }
}

[ModuleInitializer]
public static void Init() =>
VerifierSettings.ScrubMembers(
_ => typeof(IHasId).IsAssignableFrom(_.DeclaringType) &&
_.Name == "Id");

[Fact]
public Task Test()
{
var target = new Target
{
Id = new Random().Next(),
Name = "The Name"
};
return Verify(target);
}

public interface IHasId
{
public int Id { get; init; }
}
}
```
<sup><a href='/src/Verify.Tests/Snippets/NumericIdSample.cs#L1-L34' title='Snippet source file'>snippet source</a> | <a href='#snippet-NumericIdSample' title='Start of snippet'>anchor</a></sup>
<!-- endSnippet -->

Produces

<!-- snippet: NumericIdSample.Test.verified.txt -->
<a id='snippet-NumericIdSample.Test.verified.txt'></a>
```txt
{
Id: {Scrubbed},
Name: The Name
}
```
<sup><a href='/src/Verify.Tests/Snippets/NumericIdSample.Test.verified.txt#L1-L4' title='Snippet source file'>snippet source</a> | <a href='#snippet-NumericIdSample.Test.verified.txt' title='Start of snippet'>anchor</a></sup>
<!-- endSnippet -->
1 change: 1 addition & 0 deletions docs/scrubbers.md
Original file line number Diff line number Diff line change
@@ -861,3 +861,4 @@ A B C

* [Guid behavior](guids.md)
* [Date behavior](dates.md)
* [Numeric Ids](numeric-ids.md)
8 changes: 4 additions & 4 deletions docs/wiz/Linux_Other_Cli_Expecto_AzureDevOps.md
Original file line number Diff line number Diff line change
@@ -191,7 +191,7 @@ Directly after the test runner step add a build step to set a flag if the testru
displayName: 'Set flag to publish Verify *.received.* files when test step fails'
condition: failed()
inputs:
script: 'echo ##vso[task.setvariable variable=publishverify]Yes'
script: 'echo "##vso[task.setvariable variable=publishverify]Yes"'
```
Since the PublishBuildArtifacts step in DevOps does not allow a wildcard it is necessary to stage the 'received' files before publishing:
@@ -201,8 +201,8 @@ Since the PublishBuildArtifacts step in DevOps does not allow a wildcard it is n
condition: eq(variables['publishverify'], 'Yes')
displayName: 'Copy Verify *.received.* files to Artifact Staging'
inputs:
contents: '**\*.received.*'
targetFolder: '$(Build.ArtifactStagingDirectory)\Verify'
contents: '**/*.received.*'
targetFolder: '$(Build.ArtifactStagingDirectory)/Verify'
cleanTargetFolder: true
overWrite: true
```
@@ -215,7 +215,7 @@ Publish the staged files as a build artifact:
name: 'verifypublish'
condition: eq(variables['publishverify'], 'Yes')
inputs:
PathtoPublish: '$(Build.ArtifactStagingDirectory)\Verify'
PathtoPublish: '$(Build.ArtifactStagingDirectory)/Verify'
ArtifactName: 'Verify'
publishLocation: 'Container'
```
8 changes: 4 additions & 4 deletions docs/wiz/Linux_Other_Cli_Fixie_AzureDevOps.md
Original file line number Diff line number Diff line change
@@ -245,7 +245,7 @@ Directly after the test runner step add a build step to set a flag if the testru
displayName: 'Set flag to publish Verify *.received.* files when test step fails'
condition: failed()
inputs:
script: 'echo ##vso[task.setvariable variable=publishverify]Yes'
script: 'echo "##vso[task.setvariable variable=publishverify]Yes"'
```
Since the PublishBuildArtifacts step in DevOps does not allow a wildcard it is necessary to stage the 'received' files before publishing:
@@ -255,8 +255,8 @@ Since the PublishBuildArtifacts step in DevOps does not allow a wildcard it is n
condition: eq(variables['publishverify'], 'Yes')
displayName: 'Copy Verify *.received.* files to Artifact Staging'
inputs:
contents: '**\*.received.*'
targetFolder: '$(Build.ArtifactStagingDirectory)\Verify'
contents: '**/*.received.*'
targetFolder: '$(Build.ArtifactStagingDirectory)/Verify'
cleanTargetFolder: true
overWrite: true
```
@@ -269,7 +269,7 @@ Publish the staged files as a build artifact:
name: 'verifypublish'
condition: eq(variables['publishverify'], 'Yes')
inputs:
PathtoPublish: '$(Build.ArtifactStagingDirectory)\Verify'
PathtoPublish: '$(Build.ArtifactStagingDirectory)/Verify'
ArtifactName: 'Verify'
publishLocation: 'Container'
```
8 changes: 4 additions & 4 deletions docs/wiz/Linux_Other_Cli_MSTest_AzureDevOps.md
Original file line number Diff line number Diff line change
@@ -229,7 +229,7 @@ Directly after the test runner step add a build step to set a flag if the testru
displayName: 'Set flag to publish Verify *.received.* files when test step fails'
condition: failed()
inputs:
script: 'echo ##vso[task.setvariable variable=publishverify]Yes'
script: 'echo "##vso[task.setvariable variable=publishverify]Yes"'
```
Since the PublishBuildArtifacts step in DevOps does not allow a wildcard it is necessary to stage the 'received' files before publishing:
@@ -239,8 +239,8 @@ Since the PublishBuildArtifacts step in DevOps does not allow a wildcard it is n
condition: eq(variables['publishverify'], 'Yes')
displayName: 'Copy Verify *.received.* files to Artifact Staging'
inputs:
contents: '**\*.received.*'
targetFolder: '$(Build.ArtifactStagingDirectory)\Verify'
contents: '**/*.received.*'
targetFolder: '$(Build.ArtifactStagingDirectory)/Verify'
cleanTargetFolder: true
overWrite: true
```
@@ -253,7 +253,7 @@ Publish the staged files as a build artifact:
name: 'verifypublish'
condition: eq(variables['publishverify'], 'Yes')
inputs:
PathtoPublish: '$(Build.ArtifactStagingDirectory)\Verify'
PathtoPublish: '$(Build.ArtifactStagingDirectory)/Verify'
ArtifactName: 'Verify'
publishLocation: 'Container'
```
8 changes: 4 additions & 4 deletions docs/wiz/Linux_Other_Cli_NUnit_AzureDevOps.md
Original file line number Diff line number Diff line change
@@ -192,7 +192,7 @@ Directly after the test runner step add a build step to set a flag if the testru
displayName: 'Set flag to publish Verify *.received.* files when test step fails'
condition: failed()
inputs:
script: 'echo ##vso[task.setvariable variable=publishverify]Yes'
script: 'echo "##vso[task.setvariable variable=publishverify]Yes"'
```
Since the PublishBuildArtifacts step in DevOps does not allow a wildcard it is necessary to stage the 'received' files before publishing:
@@ -202,8 +202,8 @@ Since the PublishBuildArtifacts step in DevOps does not allow a wildcard it is n
condition: eq(variables['publishverify'], 'Yes')
displayName: 'Copy Verify *.received.* files to Artifact Staging'
inputs:
contents: '**\*.received.*'
targetFolder: '$(Build.ArtifactStagingDirectory)\Verify'
contents: '**/*.received.*'
targetFolder: '$(Build.ArtifactStagingDirectory)/Verify'
cleanTargetFolder: true
overWrite: true
```
@@ -216,7 +216,7 @@ Publish the staged files as a build artifact:
name: 'verifypublish'
condition: eq(variables['publishverify'], 'Yes')
inputs:
PathtoPublish: '$(Build.ArtifactStagingDirectory)\Verify'
PathtoPublish: '$(Build.ArtifactStagingDirectory)/Verify'
ArtifactName: 'Verify'
publishLocation: 'Container'
```
8 changes: 4 additions & 4 deletions docs/wiz/Linux_Other_Cli_TUnit_AzureDevOps.md
Original file line number Diff line number Diff line change
@@ -188,7 +188,7 @@ Directly after the test runner step add a build step to set a flag if the testru
displayName: 'Set flag to publish Verify *.received.* files when test step fails'
condition: failed()
inputs:
script: 'echo ##vso[task.setvariable variable=publishverify]Yes'
script: 'echo "##vso[task.setvariable variable=publishverify]Yes"'
```
Since the PublishBuildArtifacts step in DevOps does not allow a wildcard it is necessary to stage the 'received' files before publishing:
@@ -198,8 +198,8 @@ Since the PublishBuildArtifacts step in DevOps does not allow a wildcard it is n
condition: eq(variables['publishverify'], 'Yes')
displayName: 'Copy Verify *.received.* files to Artifact Staging'
inputs:
contents: '**\*.received.*'
targetFolder: '$(Build.ArtifactStagingDirectory)\Verify'
contents: '**/*.received.*'
targetFolder: '$(Build.ArtifactStagingDirectory)/Verify'
cleanTargetFolder: true
overWrite: true
```
@@ -212,7 +212,7 @@ Publish the staged files as a build artifact:
name: 'verifypublish'
condition: eq(variables['publishverify'], 'Yes')
inputs:
PathtoPublish: '$(Build.ArtifactStagingDirectory)\Verify'
PathtoPublish: '$(Build.ArtifactStagingDirectory)/Verify'
ArtifactName: 'Verify'
publishLocation: 'Container'
```
8 changes: 4 additions & 4 deletions docs/wiz/Linux_Other_Cli_XunitV3_AzureDevOps.md
Original file line number Diff line number Diff line change
@@ -190,7 +190,7 @@ Directly after the test runner step add a build step to set a flag if the testru
displayName: 'Set flag to publish Verify *.received.* files when test step fails'
condition: failed()
inputs:
script: 'echo ##vso[task.setvariable variable=publishverify]Yes'
script: 'echo "##vso[task.setvariable variable=publishverify]Yes"'
```
Since the PublishBuildArtifacts step in DevOps does not allow a wildcard it is necessary to stage the 'received' files before publishing:
@@ -200,8 +200,8 @@ Since the PublishBuildArtifacts step in DevOps does not allow a wildcard it is n
condition: eq(variables['publishverify'], 'Yes')
displayName: 'Copy Verify *.received.* files to Artifact Staging'
inputs:
contents: '**\*.received.*'
targetFolder: '$(Build.ArtifactStagingDirectory)\Verify'
contents: '**/*.received.*'
targetFolder: '$(Build.ArtifactStagingDirectory)/Verify'
cleanTargetFolder: true
overWrite: true
```
@@ -214,7 +214,7 @@ Publish the staged files as a build artifact:
name: 'verifypublish'
condition: eq(variables['publishverify'], 'Yes')
inputs:
PathtoPublish: '$(Build.ArtifactStagingDirectory)\Verify'
PathtoPublish: '$(Build.ArtifactStagingDirectory)/Verify'
ArtifactName: 'Verify'
publishLocation: 'Container'
```
8 changes: 4 additions & 4 deletions docs/wiz/Linux_Other_Cli_Xunit_AzureDevOps.md
Original file line number Diff line number Diff line change
@@ -190,7 +190,7 @@ Directly after the test runner step add a build step to set a flag if the testru
displayName: 'Set flag to publish Verify *.received.* files when test step fails'
condition: failed()
inputs:
script: 'echo ##vso[task.setvariable variable=publishverify]Yes'
script: 'echo "##vso[task.setvariable variable=publishverify]Yes"'
```
Since the PublishBuildArtifacts step in DevOps does not allow a wildcard it is necessary to stage the 'received' files before publishing:
@@ -200,8 +200,8 @@ Since the PublishBuildArtifacts step in DevOps does not allow a wildcard it is n
condition: eq(variables['publishverify'], 'Yes')
displayName: 'Copy Verify *.received.* files to Artifact Staging'
inputs:
contents: '**\*.received.*'
targetFolder: '$(Build.ArtifactStagingDirectory)\Verify'
contents: '**/*.received.*'
targetFolder: '$(Build.ArtifactStagingDirectory)/Verify'
cleanTargetFolder: true
overWrite: true
```
@@ -214,7 +214,7 @@ Publish the staged files as a build artifact:
name: 'verifypublish'
condition: eq(variables['publishverify'], 'Yes')
inputs:
PathtoPublish: '$(Build.ArtifactStagingDirectory)\Verify'
PathtoPublish: '$(Build.ArtifactStagingDirectory)/Verify'
ArtifactName: 'Verify'
publishLocation: 'Container'
```
6 changes: 3 additions & 3 deletions docs/wiz/Linux_Other_Gui_Expecto_AppVeyor.md
Original file line number Diff line number Diff line change
@@ -17,10 +17,10 @@ Add the following packages to the test project:
<!-- snippet: expecto-nugets -->
<a id='snippet-expecto-nugets'></a>
```fsproj
<PackageReference Include="YoloDev.Expecto.TestSdk" Version="0.14.3" />
<PackageReference Include="YoloDev.Expecto.TestSdk" Version="0.15.2" />
<PackageReference Include="Expecto" Version="10.2.1" />
<PackageReference Update="FSharp.Core" Version="9.0.101" />
<PackageReference Include="Verify.Expecto" Version="28.10.0" />
<PackageReference Update="FSharp.Core" Version="9.0.201" />
<PackageReference Include="Verify.Expecto" Version="28.11.0" />
```
<sup><a href='/usages/ExpectoNugetUsage/ExpectoNugetUsage.fsproj#L8-L13' title='Snippet source file'>snippet source</a> | <a href='#snippet-expecto-nugets' title='Start of snippet'>anchor</a></sup>
<!-- endSnippet -->
14 changes: 7 additions & 7 deletions docs/wiz/Linux_Other_Gui_Expecto_AzureDevOps.md
Original file line number Diff line number Diff line change
@@ -17,10 +17,10 @@ Add the following packages to the test project:
<!-- snippet: expecto-nugets -->
<a id='snippet-expecto-nugets'></a>
```fsproj
<PackageReference Include="YoloDev.Expecto.TestSdk" Version="0.14.3" />
<PackageReference Include="YoloDev.Expecto.TestSdk" Version="0.15.2" />
<PackageReference Include="Expecto" Version="10.2.1" />
<PackageReference Update="FSharp.Core" Version="9.0.101" />
<PackageReference Include="Verify.Expecto" Version="28.10.0" />
<PackageReference Update="FSharp.Core" Version="9.0.201" />
<PackageReference Include="Verify.Expecto" Version="28.11.0" />
```
<sup><a href='/usages/ExpectoNugetUsage/ExpectoNugetUsage.fsproj#L8-L13' title='Snippet source file'>snippet source</a> | <a href='#snippet-expecto-nugets' title='Start of snippet'>anchor</a></sup>
<!-- endSnippet -->
@@ -186,7 +186,7 @@ Directly after the test runner step add a build step to set a flag if the testru
displayName: 'Set flag to publish Verify *.received.* files when test step fails'
condition: failed()
inputs:
script: 'echo ##vso[task.setvariable variable=publishverify]Yes'
script: 'echo "##vso[task.setvariable variable=publishverify]Yes"'
```
Since the PublishBuildArtifacts step in DevOps does not allow a wildcard it is necessary to stage the 'received' files before publishing:
@@ -196,8 +196,8 @@ Since the PublishBuildArtifacts step in DevOps does not allow a wildcard it is n
condition: eq(variables['publishverify'], 'Yes')
displayName: 'Copy Verify *.received.* files to Artifact Staging'
inputs:
contents: '**\*.received.*'
targetFolder: '$(Build.ArtifactStagingDirectory)\Verify'
contents: '**/*.received.*'
targetFolder: '$(Build.ArtifactStagingDirectory)/Verify'
cleanTargetFolder: true
overWrite: true
```
@@ -210,7 +210,7 @@ Publish the staged files as a build artifact:
name: 'verifypublish'
condition: eq(variables['publishverify'], 'Yes')
inputs:
PathtoPublish: '$(Build.ArtifactStagingDirectory)\Verify'
PathtoPublish: '$(Build.ArtifactStagingDirectory)/Verify'
ArtifactName: 'Verify'
publishLocation: 'Container'
```
6 changes: 3 additions & 3 deletions docs/wiz/Linux_Other_Gui_Expecto_GitHubActions.md
Original file line number Diff line number Diff line change
@@ -17,10 +17,10 @@ Add the following packages to the test project:
<!-- snippet: expecto-nugets -->
<a id='snippet-expecto-nugets'></a>
```fsproj
<PackageReference Include="YoloDev.Expecto.TestSdk" Version="0.14.3" />
<PackageReference Include="YoloDev.Expecto.TestSdk" Version="0.15.2" />
<PackageReference Include="Expecto" Version="10.2.1" />
<PackageReference Update="FSharp.Core" Version="9.0.101" />
<PackageReference Include="Verify.Expecto" Version="28.10.0" />
<PackageReference Update="FSharp.Core" Version="9.0.201" />
<PackageReference Include="Verify.Expecto" Version="28.11.0" />
```
<sup><a href='/usages/ExpectoNugetUsage/ExpectoNugetUsage.fsproj#L8-L13' title='Snippet source file'>snippet source</a> | <a href='#snippet-expecto-nugets' title='Start of snippet'>anchor</a></sup>
<!-- endSnippet -->
Loading