Files
CBDD/scripts/coverage-check.sh
Joseph Doherty 3ffd468c79
All checks were successful
NuGet Publish / build-and-pack (push) Successful in 45s
NuGet Publish / publish-to-gitea (push) Successful in 52s
Fix audit findings for coverage, architecture checks, and XML docs
2026-02-20 15:43:25 -05:00

18 lines
500 B
Bash
Executable File

#!/usr/bin/env bash
set -euo pipefail
repo_root="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
cd "$repo_root"
echo "[coverage] dotnet test with coverage thresholds"
dotnet test tests/CBDD.Tests/ZB.MOM.WW.CBDD.Tests.csproj \
/p:CollectCoverage=true \
/p:CoverletOutputFormat=cobertura \
/p:Include="[ZB.MOM.WW.CBDD.Core*]*%2c[ZB.MOM.WW.CBDD.Bson*]*" \
/p:Exclude="[*.Tests]*" \
/p:Threshold=64 \
/p:ThresholdType=line%2cbranch \
/p:ThresholdStat=total
echo "[coverage] complete"