Generate code coverage reports to measure test completeness and enforce quality in CI. Generate Coverage Report Coverage Exclusions Configure in the test .csproj to exclude non-testable code: Program.cs — entry point / configuration, not unit-testable Generated code — auto-generated by EF Core, Swagger, etc. CI Coverage Enforcement The /p:Threshold=80 flag fails the build if line coverage drops below 80%.