test: raise Wolfgang.Etl.TestKit coverage to ≥90%#189
Merged
Conversation
…s (raise Wolfgang.Etl.TestKit coverage ≥90%) Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This was referenced Jun 26, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
The
vNext → mainrelease PR (#187) fails CI's per-assembly 90% coverage gate: theWolfgang.Etl.TestKitassembly sat at 80.3%. This PR adds test-only coverage to clear the gate and unblock #187.Result
Assembly
Wolfgang.Etl.TestKit: 80.3% → 99.13% line coverage.Per-class (before → after):
What was covered
The previously-uncovered paths, all shared by the six doubles:
CreateProgressTimerwiring (both the_progressTimer is null → baseand the!_progressTimerWired → subscribebranches),CreateProgressReport, and theElapsedhandler firing a progress report. Added on all threeFaulty*doubles and theTest*doubles, plus theTestExtractorfactory/indexed factory-with-timer constructor argument-validation branches.Dispose(bool)unsubscribe branch — covered on all six doubles.SkipItemCount/MaximumItemCountenforcement on theFaulty*doubles (skip-continue and max-break branches).All new tests mirror the existing patterns (the
*WithTimernested subclass exposing the protected timer ctor,ManualProgressTimer+SynchronousProgress<Report>fromWolfgang.Etl.TestKit.Xunit). Test code only — nosrc/production file was modified.Verification (local)
dotnet build -c Release: 0 warnings, 0 errors (warnings-as-errors) across all test TFMs.--collect:"XPlat Code Coverage", net8.0): assembly line-rate 0.9913; every double class ≥ 0.94.🤖 Generated with Claude Code