diff --git a/Pipeline/Build.cs b/Pipeline/Build.cs index b6b9091..b1d0173 100644 --- a/Pipeline/Build.cs +++ b/Pipeline/Build.cs @@ -82,6 +82,25 @@ internal sealed class Build : NukeBuild, Log.Information("CI pipeline completed successfully"); }); + /// + /// One-shot local verify: Clean → Compile → all tests with Cobertura → DotCov gate. + /// Mirrors what CI runs end-to-end; ideal for the coverage push iterator loop. + /// + /// + /// Threshold overrides flow through as usual, e.g. + /// ./build.sh Verify --coverage-min-line 95 --coverage-min-branch 75 --coverage-exclude-generated-param true. + /// Without args, DotCov.Nuke's defaults apply. + /// + Target Verify => d => d + .Description("All tests + Cobertura + DotCov gate in one run") + .DependsOn(x => x.Clean) + .DependsOn(x => x.Coverage) + .DependsOn(x => x.ReportCoverage) + .Executes(() => + { + Log.Information("Verify completed — artifacts in Artifacts/coverage/"); + }); + /// Start full stack for development. Target Dev => d => d .Description("Start development environment (Docker + compile)")