chore(infra): configure coverlet for backend C# coverage #49

Merged
dmolinari merged 1 commits from infra/coverlet-setup into main 2026-04-19 22:22:05 +00:00
Owner

Summary

  • Agrega coverlet.runsettings en la raíz con formato Cobertura, exclusiones para migrations, DI wiring, Program.cs y auto-props
  • coverlet.collector 6.0.4 ya estaba presente vía Directory.Packages.props — no requirió cambios en los .csproj
  • Documenta los comandos de coverage y generación de HTML report en el README

Closes #48

Coverage baseline

Proyecto Line Branch
SIGCM2.Application.Tests 80.9% 65.3%
SIGCM2.Api.Tests 64.9% 57.8%

Test plan

  • dotnet test --collect:"XPlat Code Coverage" --settings coverlet.runsettings --results-directory ./TestResults corre sin errores
  • Se generan dos coverage.cobertura.xml en ./TestResults/ (uno por proyecto de test)
  • Todos los tests siguen en verde: 1098 (Application.Tests) + 306 (Api.Tests) = 1404 passed, 0 failed
  • HTML report generado con reportgenerator a partir de los XML (verificado manualmente)
  • SIGCM2.TestSupport no tiene tests ejecutables — warning esperado, no es un error
## Summary - Agrega `coverlet.runsettings` en la raíz con formato Cobertura, exclusiones para migrations, DI wiring, `Program.cs` y auto-props - `coverlet.collector` 6.0.4 ya estaba presente vía `Directory.Packages.props` — no requirió cambios en los `.csproj` - Documenta los comandos de coverage y generación de HTML report en el README Closes #48 ## Coverage baseline | Proyecto | Line | Branch | |---|---|---| | `SIGCM2.Application.Tests` | 80.9% | 65.3% | | `SIGCM2.Api.Tests` | 64.9% | 57.8% | ## Test plan - [x] `dotnet test --collect:"XPlat Code Coverage" --settings coverlet.runsettings --results-directory ./TestResults` corre sin errores - [x] Se generan dos `coverage.cobertura.xml` en `./TestResults/` (uno por proyecto de test) - [x] Todos los tests siguen en verde: 1098 (Application.Tests) + 306 (Api.Tests) = 1404 passed, 0 failed - [x] HTML report generado con `reportgenerator` a partir de los XML (verificado manualmente) - [ ] `SIGCM2.TestSupport` no tiene tests ejecutables — warning esperado, no es un error
dmolinari added 1 commit 2026-04-19 22:22:02 +00:00
Add coverlet.runsettings with Cobertura format, exclusions for migrations,
DI wiring, Program.cs and auto-props. Document coverage commands in README.

coverlet.collector 6.0.4 was already present via Directory.Packages.props.

Coverage baseline (Application.Tests + Api.Tests combined):
- Application.Tests: line 80.9%, branch 65.3%
- Api.Tests: line 64.9%, branch 57.8%

Closes #48
dmolinari merged commit 5a55fdaaae into main 2026-04-19 22:22:05 +00:00
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: dmolinari/SIG-CM2.0#49