Receber por email
← Voltar para o catálogo

claude-code-rules

Learn practical techniques to enhance your AI-assisted development workflow with Claude Code.

132estrelas
Atualizado há 4 meses

Ver no GitHub ↗ Licença: Apache-2.0

Como adicionar

/plugin marketplace add NikiforovAll/claude-code-rules

O comando exato pode variar conforme o repositório. Confira o README no GitHub.

Para o autor da skill

Cole no README do seu repo

Mostra que sua skill está catalogada na Skillteca, gera backlink e tráfego rastreável.

[![Skillteca](https://www.skillteca.com.br/api/badge/claude-code-rules-mr0lhuo0/svg)](https://www.skillteca.com.br/skills/claude-code-rules-mr0lhuo0)
#ai

Skills relacionadas

Ver todas de Automação →

Alerta por categoria

Receba novas skills de Automação toda segunda

1 email curto, só com as skills novas de Automação. 4 minutos de leitura, sem spam, cancela com 1 clique.

Você confirma o email no primeiro envio. Sem spam. Cancela com 1 clique.

Ler descrição completa

.NET Verify Snapshot Testing

Manage Verify snapshot tests using the verify.tool dotnet local tool.

Discovery

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>

Update Snapshots

To update snapshots after intentional code changes:

  1. Build the solution:

``bash dotnet build -p:WarningLevel=0 /clp:ErrorsOnly --verbosity minimal ``

  1. Run affected verify tests (they fail, generating .received. files):

``bash dotnet test <test-project> --no-build --filter "FullyQualifiedName~<TestClass>" -v m ``

  1. Accept all new snapshots:

``bash dotnet verify accept -y ` To scope to a specific directory: `bash dotnet verify accept -y -w <path/to/test/directory> ``

  1. Re-run tests to confirm they pass:

``bash dotnet test <test-project> --no-build --filter "FullyQualifiedName~<TestClass>" -v m ``

File Conventions

  • ClassName.MethodName.verified.txt — accepted snapshot (committed to git)
  • ClassName.MethodName.received.txt — latest test output (not committed, gitignored)
  • Parameterized tests: ClassName.MethodName_param=value.verified.txt

Quick Reference

| 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 |

Compartilhar X LinkedIn