Repository navigation
feat(analyzers): read skips in same-file helpers (spec 015 phase 3) - #196
Merged
adrian-xping merged 3 commits intoDec 4, 2026
Conversation
SkipExtractor now takes the test's ExtractedAssertions and reads the bodies of the helpers Spec 013 followed, once per call site. Reasons fold helper parameters in the caller's scope; skipWhen literals are read after substitution; reach is read inside the helper and at the call site (a swallowing catch at either means no skip). A helper's skip keeps its span in the helper and sorts at its call site. Spec-Runner: spec=015 phase=3 step=implement
Contributor
Author
spec-runner review, phase 3, round 1
|
…pec 015 phase 3) Spec-Runner: spec=015 phase=3 step=fix-1
Contributor
Author
spec-runner review, phase 3, round 2
|
… body as no skip (spec 015 phase 3) Spec-Runner: spec=015 phase=3 step=fix-2
Contributor
Author
spec-runner review, phase 3, round 3
|
adrian-xping
merged commit Dec 4, 2026
e21bca8
into
feat/spec-015-csharp-skip-extraction
3 checks passed
adrian-xping
deleted the
phase/spec-015-csharp-skip-extraction/3-helpers
branch
December 4, 2026 03:19
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.
Spec 015 (docs/specs/core/015-csharp-skip-extraction.md), phase 3: Helpers.
Spec 015 §9: skips in same-file helpers.
SkipExtractor.Extractnow receives the test'sExtractedAssertions(asTimeoutExtractordoes) and reads each helper Spec 013 followed, once per call site. Reasons fold helper parameters through Spec 014'sFoldScope;skipWhen…/makesConditionalarguments that name a parameter are read as the call's argument, soSkipOn(true)aroundSkip.If(flag, …)is unconditional. §7 rule 4's reach is checked in the helper and at the call site. Thereachfixture gains the helper cases (top-level skip, skip underif, call underif, swallowingtryat the call site, awaited helper withConfigureAwait, nested helper, literal substitution intoSkip.If), andAHelperSkipIsConditionalWhenItsCallIsplus two companion tests cover the rest.Notes
ExtractedAssertions.FollowedHelpers.reachfixture now has a second class (XunitReachTests,[SkippableFact]) for theSkip.Ifsubstitution case; the file is syntax-only and doesn't need to compile.AHelperSkipThatDoesntReachTheTestIsNothing(swallowing catch at call site or in the helper, nested helper, call on another type) andAHelperConditionIsReadAfterSubstitution(literal, default value, non-literal argument).Spec updated: yes
Phase row
3-helpersreach.AHelperSkipIsConditionalWhenItsCallIs.main)Opened by spec-runner.