Repository navigation
feat(analyzers): read C# skips from a reviewable table (spec 015 phase 1) - #194
Merged
adrian-xping merged 2 commits intoDec 4, 2026
Conversation
…e 1) Add Skips/skips.json with its loader and validator, and SkipExtractor: test and data attributes, class attributes, named arguments and modifiers, runtime skip calls and throws in the body, verbatim reasons, reach (conditional, swallowed) and precedence. Add SkipFact.Cases, a case skip to the facts catalog, and the samples/skips fixtures. Move Spec 014's name lookup into Timeouts/NameLookup so both folders share it. Spec-Runner: spec=015 phase=1 step=implement
Contributor
Author
spec-runner review, phase 1, round 1
|
…r table shape rules (spec 015 phase 1) Spec-Runner: spec=015 phase=1 step=fix-1
Contributor
Author
spec-runner review, phase 1, round 2No findings. |
adrian-xping
merged commit Dec 4, 2026
949f0f2
into
feat/spec-015-csharp-skip-extraction
3 checks passed
adrian-xping
deleted the
phase/spec-015-csharp-skip-extraction/1-skips
branch
December 4, 2026 01:23
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 1: Skips.
Phase 1 of Spec 015: the analyzer now fills
skipfor C# tests. A new embedded table (Skips/skips.json, 46 rows for xUnit v2/v3, NUnit 3/4, MSTest 3/4) is loaded and validated bySkipPatterns(§4.5).SkipExtractorreads candidates from the test's attributes, the declaring class's attributes, named arguments (with modifier rows such asSkipWhen,Until,Reason), and skip calls and throws in the body; it decodes reasons verbatim (§6), applies reach rules (branches, lambdas, swallowing catches, §7) and picks one skip (§8).SkipFactgainscases; the catalog fixture has a[TestCase(…, Ignore = …)]test soTheFixturesUseEveryFieldcovers it. Sevensamples/skips/folders (xunit, nunit, mstest, case-skips, reach without helpers, precedence, not-skips) pin the behaviour, with unit tests for every §14 skip test except the helper one.Notes
versionsfield as the 'header' §5 asks for (JSON has no comments); the loader accepts onlyrowsandversions. Spec §4.1 updated.Assume.That(c, message): the message is read as the reason. §5.2 didn't say; updated to say so.[SkippableTheory]for its xUnit tests: the file's NUnitTestCaseis an NUnit signal, which makes a bareTheoryNUnit's under Spec 012 §4.3. A comment in the fixture says why.TheAnalyzerReproducesTheSkipAndDisabledPartOfEveryFactsFixturecompares theskipof live tests only for now (TODO(spec) for phase 2 to add disabled tests). The new catalog test's assertion carries a hand-writtenvalueOrigin: realCalllike its neighbours (Spec 016's field).await …ConfigureAwait(…)reach handling is implemented but only exercised by phase 3's helper fixture (no table row is awaitable).Spec updated: yes
Phase row
1-skipsSkipFact.Caseswith the catalog case skip (§12;TheFixturesUseEveryFieldneeds it in the same PR); thexunit,nunit,mstest,case-skips,precedence,not-skipsfolders and thereachcases without helpers.Opened by spec-runner.