协作头脑风暴
brainstorming
在实现前澄清需求、探索设计选择,并形成清晰的开发方向。
dotnet-verify【开发与工程】This skill should be used when working with Verify snapshot tests in .NET projects. Use when updating verified snapshots after intentional code changes, accepting new snapshots, discovering verify tests, or troubleshooting snapshot mismatches. Trigger phrases include "verify tests", "update snapshots", "accept snapshots", "verified files", ".verified…
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Manage Verify snapshot tests using the verify.tool dotnet local tool.
To list all test files using Verify snapshots:
rg -l "Verifier\.Verify|UsesVerify|\.verified\." --type cs
To scope to a specific directory:
rg -l "Verifier\.Verify|UsesVerify|\.verified\." --type cs <path/to/test/directory>
To update snapshots after intentional code changes:
Build the solution:
dotnet build -p:WarningLevel=0 /clp:ErrorsOnly --verbosity minimal
Run affected verify tests (they fail, generating .received. files):
dotnet test <test-project> --no-build --filter "FullyQualifiedName~<TestClass>" -v m
Accept all new snapshots:
dotnet verify accept -y
To scope to a specific directory:
dotnet verify accept -y -w <path/to/test/directory>
Re-run tests to confirm they pass:
dotnet test <test-project> --no-build --filter "FullyQualifiedName~<TestClass>" -v m
ClassName.MethodName.verified.txt — accepted snapshot (committed to git)ClassName.MethodName.received.txt — latest test output (not committed, gitignored)ClassName.MethodName_param=value.verified.txt| Command | Purpose |
|---|---|
dotnet verify accept -y | Accept all pending snapshots |
dotnet verify accept -y -w <dir> | Accept snapshots in specific directory |
rg -l "Verifier\.Verify|UsesVerify|\.verified\." --type cs | List all test files using Verify |