[INFRA] Configurar coverlet para coverage en backend C# #48
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Origen
SUGGESTION S3 del verify-report de PRD-003. Engram topic_key:
sdd/prd-003-product-prices-historicos/verify-report.Contexto
El backend C# (.NET 10) no tiene
coverlet.collectorconfigurado en los proyectos de test (SIGCM2.Application.Tests,SIGCM2.Api.Tests). Durante el verify de PRD-003 no fue posible reportar coverage numérico — solo conteo de tests (1404 backend + 453 frontend = 1857 total).Frontend sí tiene coverage via
vitest --coverage(v8 provider).Propuesta
<PackageReference Include="coverlet.collector" />en los 3 test projects (SIGCM2.Domain.Testssi se crea,SIGCM2.Application.Tests,SIGCM2.Api.Tests)coverlet.runsettingsen la raíz del solution con exclusions razonables (migrations, DI wiring, generated code)dotnet test --collect:"XPlat Code Coverage" --settings coverlet.runsettingsCriticidad
Baja-Media. No bloquea UDTs, pero a partir de cierto volumen (ya vamos por ~1400 tests backend) tener visibilidad de coverage ayuda a detectar regresiones silenciosas y zonas no testeadas.
Alcance
Infra transversal. No atado a ningún UDT específico — por eso va como
[INFRA]en el título en vez de[PRD-XXX].Relacionado