Skip to content

Commit 29e6470

Browse files
committed
Update claude.md
1 parent 333a8ca commit 29e6470

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

claude.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,9 @@ Tests use [Verify](https://github.com/VerifyTests/Verify) with NUnit. When test
3232
- `Foo.DotNet10_0.received.xml``Foo.DotNet.verified.xml`
3333
- `Foo.Net4_8.received.xml``Foo.Net.verified.xml`
3434

35-
Copying the stem verbatim writes a second, parallel snapshot corpus no test ever reads, leaving the real baseline stale and the suite still failing. `dotnet verify accept` derives one name from the other and does the same thing — do not use it here. Map by hand.
35+
Copying the stem verbatim writes a second, parallel snapshot corpus no test ever reads, leaving the real baseline stale and the suite still failing. So map the name, do not copy it.
36+
37+
When accepting by hand, take the destination from the `Verified:` line of the failure message rather than deriving it from the received name. `dotnet verify accept` (Verify.Tool 0.8.0 and later) reads the pairing that Verify records under `obj`, so it maps these names correctly and is safe to use from the repository root. Run it from a directory above `obj`, since that is where the records live.
3638
- A new snapshot test needs **both** baselines, since the suite multi-targets `net10.0` and `net48`. A missing `.Net.verified.xml` fails only on the net48 run.
3739
- Tests producing docx binaries or floating-point output use `.UniqueForTargetFrameworkAndVersion()` since output differs between net10.0 and net48
3840
- Custom Verify converters in `VerifyOpenXmlConverter.cs` serialize OpenXml objects to `.OuterXml`

0 commit comments

Comments
 (0)