<- Back to docs hub

QA and Test Coverage

Current quality gates, automated test stages, and where to read coverage and execution reports in local and CI environments.

QA strategy overview

Unit test coverage scope

LayerCurrent unit test scopeCoverage output
backend Unit tests are filtered using FullyQualifiedName~.UnitTests. and currently focus on service-level scenarios in TuCreditoOnline.Tests/UnitTests/Services. Coverage is collected in Cobertura format and transformed into HTML via ReportGenerator.
frontend Jest + React Testing Library tests under frontend/src/**/__tests__, currently including wizard flow and credit calculator hooks. Jest coverage is generated with --coverage and exported as part of the unit test job artifacts/reports.

How to run tests locally

TargetCommand
Frontend unit testscd frontend && npm test
Frontend coveragecd frontend && npm run test:coverage
Backend unit testscd backend && dotnet test tests/TuCreditoOnline.Tests/TuCreditoOnline.Tests.csproj --filter "FullyQualifiedName~.UnitTests."
Backend integration testscd backend && dotnet test TuCreditoOnline.sln --filter "FullyQualifiedName~.IntegrationTests."

CI report outputs

The CI dashboard comment on each pull request links to live report previews (Surge) when publishing succeeds; otherwise, artifacts remain the source of truth.

Coverage interpretation notes