Raven Test Triage
marinasundstrom/raven
Testing and stabilization workflow for the Raven compiler test suite.
Build, test, and run the Corvus.JsonSchema solution correctly.
$ npx skills add corvus-dotnet/Corvus.JsonSchema --skill corvus-build-and-test -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install corvus-dotnet/Corvus.JsonSchema corvus-build-and-test --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/corvus-dotnet/Corvus.JsonSchema.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.github/skills/corvus-build-and-test .claude/skills/corvus-build-and-test && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "corvus-build-and-test" agent skill from https://github.com/corvus-dotnet/Corvus.JsonSchema/tree/main/.github/skills/corvus-build-and-test into .claude/skills/corvus-build-and-test/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "corvus-build-and-test", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/corvus-dotnet/Corvus.JsonSchema/tree/main/.github/skills/corvus-build-and-testType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add corvus-dotnet/Corvus.JsonSchema --skill corvus-build-and-test -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install corvus-dotnet/Corvus.JsonSchema corvus-build-and-test --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/corvus-dotnet/Corvus.JsonSchema.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.github/skills/corvus-build-and-test .agents/skills/corvus-build-and-test && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "corvus-build-and-test" agent skill from https://github.com/corvus-dotnet/Corvus.JsonSchema/tree/main/.github/skills/corvus-build-and-test into .agents/skills/corvus-build-and-test/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "corvus-build-and-test", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add corvus-dotnet/Corvus.JsonSchema --skill corvus-build-and-test -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install corvus-dotnet/Corvus.JsonSchema corvus-build-and-test --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/corvus-dotnet/Corvus.JsonSchema.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.github/skills/corvus-build-and-test .cursor/skills/corvus-build-and-test && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "corvus-build-and-test" agent skill from https://github.com/corvus-dotnet/Corvus.JsonSchema/tree/main/.github/skills/corvus-build-and-test into .cursor/skills/corvus-build-and-test/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "corvus-build-and-test", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/corvus-dotnet/Corvus.JsonSchema.git --path .github/skills/corvus-build-and-test--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add corvus-dotnet/Corvus.JsonSchema --skill corvus-build-and-test -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install corvus-dotnet/Corvus.JsonSchema corvus-build-and-test --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/corvus-dotnet/Corvus.JsonSchema.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.github/skills/corvus-build-and-test .gemini/skills/corvus-build-and-test && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "corvus-build-and-test" agent skill from https://github.com/corvus-dotnet/Corvus.JsonSchema/tree/main/.github/skills/corvus-build-and-test into .gemini/skills/corvus-build-and-test/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "corvus-build-and-test", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install corvus-dotnet/Corvus.JsonSchema corvus-build-and-testInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add corvus-dotnet/Corvus.JsonSchema --skill corvus-build-and-test -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/corvus-dotnet/Corvus.JsonSchema.git skills-src && mkdir -p .github/skills && cp -r skills-src/.github/skills/corvus-build-and-test .github/skills/corvus-build-and-test && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "corvus-build-and-test" agent skill from https://github.com/corvus-dotnet/Corvus.JsonSchema/tree/main/.github/skills/corvus-build-and-test into .github/skills/corvus-build-and-test/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "corvus-build-and-test", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add corvus-dotnet/Corvus.JsonSchema --skill corvus-build-and-test -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install corvus-dotnet/Corvus.JsonSchema corvus-build-and-test --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/corvus-dotnet/Corvus.JsonSchema.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.github/skills/corvus-build-and-test .opencode/skills/corvus-build-and-test && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "corvus-build-and-test" agent skill from https://github.com/corvus-dotnet/Corvus.JsonSchema/tree/main/.github/skills/corvus-build-and-test into .opencode/skills/corvus-build-and-test/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "corvus-build-and-test", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
corvus-build-and-testBuild, test, and run the Corvus.JsonSchema solution correctly.
Corvus Build And Test is an agent skill from corvus-dotnet/Corvus.JsonSchema. Build, test, and run the Corvus.JsonSchema solution correctly. Covers multi-targeting (net9.0/net10.0/net481/netstandard2.0), mandatory test category filters, solution file selection, running specific test classes or methods, writing new tests, and diagnosing common build/test failures. USE FOR: building the solution, running tests, writing new test files, diagnosing test failures, understanding TFM targeting, finding the right test project for a feature area. DO NOT USE FOR: benchmark execution (use…
Its SKILL.md is about 5.5k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.
It sits in Testing & QA, covering Test generation, Failing and flaky tests and Project scaffolding. It works with .NET. The repository describes itself as: Support for Json Schema validation and entity generation. The licence is Apache-2.0.
2 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit 973097f. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
Shell commands in SKILL.md call:
dotnetFrom the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Corvus Build And Test loads about 5.5k tokens when it runs. Until then it costs about 162 tokens; SKILL.md has 2,002 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from corvus-dotnet/Corvus.JsonSchema at commit 973097f, republished under its Apache-2.0 licence (© corvus-dotnet). 2,002 words, ~5,508 tokens.
.claude/skills/corvus-build-and-test/SKILL.md (or your agent's skills folder).| Solution | Purpose |
|---|---|
Corvus.Text.Json.slnx | Main V5 solution — all libraries + all tests (use for dotnet build and dotnet test) |
Corvus.Text.Json.Benchmarks.slnx | Benchmark projects only |
All test projects use MSTest (MSTest.Sdk 4.2.2) with Microsoft Testing Platform (MTP). The global.json pins the MSTest.Sdk version and configures MTP as the test runner.
All test projects target both net10.0 and net481. CodeGenerator.Tests produces an empty assembly on net481 (the CLI tool is .NET 10 only); <IsTestProject>false</IsTestProject> on net481 plus --ignore-exit-code 8 in CI prevents it from failing the test run. Three source-generator test projects (JMESPath, Jsonata, JsonLogic) exclude their SourceGeneratorDiagnosticTests.cs file on net481 because those Roslyn-hosted tests require .NET Core reference assemblies (integration tests run on both TFMs). Running dotnet test --solution Corvus.Text.Json.slnx without -f runs tests on all applicable TFMs.
V4 projects live in src-v4/ and tests-v4/ and are included in the solution.
# Full build
dotnet build Corvus.Text.Json.slnx
# Build a specific project
dotnet build src\Corvus.Text.Json\Corvus.Text.Json.csprojTreatWarningsAsErrors=true is set across all projects — any warning fails the build.
Before every commit, verify these mandatory gates:
dotnet build Corvus.Text.Json.slnx must report 0 Warning(s)..github/, docs/, or skill/instruction files was modified (even incidentally), update and verify:.\docs\update-code-sample-catalog.ps1 -UpdateFile <relative-path> # for each changed file
.\docs\update-code-sample-catalog.ps1 -Check # must exit 0CI runs the catalog check and fails the build if it is stale. This is the most commonly missed pre-commit gate.
ALWAYS exclude failing and outerloop categories:
System.Text.JsonTest code and assertions must use Corvus.Text.Json types (JsonElement, JsonValueKind, ParsedJsonDocument<T>, etc.), not System.Text.Json equivalents. Do not add using System.Text.Json; to test files. The two namespaces share type names (JsonElement, Utf8JsonWriter, JsonWriterOptions) which cause ambiguity errors, and using STJ types in assertions would test the wrong library.
System.Text.Json is acceptable only for test data infrastructure — e.g., reading JSON fixture files with System.Text.Json.JsonDocument to enumerate test cases. In those cases, fully-qualify the STJ types (e.g., System.Text.Json.JsonElement).
Always use Assert.AreEqual with the complete expected value. Do not use StringAssert.Contains, Assert.IsTrue(x.StartsWith(...)), or similar weak assertions for output verification — these mask bugs where the format changes but still contains the checked substring.
Acceptable exceptions:
StringAssert.Contains(ex.Message, "T0410"))Technique for capturing exact values:
Assert.Fail(actualValue) or Console.WriteLine to capture the exact output.cs script) referencing the library project to call the API directly""") for JSON expected values — \u002B, \n, \t are literal characters matching JSON content// GOOD — exact assertion with raw string literal
Assert.AreEqual("""{"name":"Alice","age":30}""", json);
// BAD — weak assertion that passes even if output is wrong
StringAssert.Contains(json, "Alice");# Run all tests (standard — all 21 test projects, both TFMs)
dotnet test --solution Corvus.Text.Json.slnx --filter "TestCategory!=failing&TestCategory!=outerloop"
# Run all tests on a specific TFM
dotnet test --solution Corvus.Text.Json.slnx -f net10.0 --filter "TestCategory!=failing&TestCategory!=outerloop"
# Run a single test class
dotnet test --solution Corvus.Text.Json.slnx --filter "FullyQualifiedName~ParsedJsonDocumentTests&TestCategory!=failing&TestCategory!=outerloop"
# Run a single test method
dotnet test --solution Corvus.Text.Json.slnx --filter "FullyQualifiedName~ParseValidUtf8BOM&TestCategory!=failing&TestCategory!=outerloop"# JSON Schema draft-specific tests (all in Corvus.Text.Json.Tests)
dotnet test --project tests\Corvus.Text.Json.Tests --filter "JsonSchemaTestSuite=Draft202012&TestCategory!=failing&TestCategory!=outerloop"
# Standalone evaluator tests (all in Corvus.Text.Json.Tests)
dotnet test --project tests\Corvus.Text.Json.Tests --filter "TestCategory~StandaloneEvaluatorTestSuite&TestCategory!=failing&TestCategory!=outerloop"
# Annotation tests (all in Corvus.Text.Json.Tests)
dotnet test --project tests\Corvus.Text.Json.Tests --filter "TestCategory~AnnotationTestSuite&TestCategory!=failing&TestCategory!=outerloop"
# JSONata conformance
dotnet test --project tests\Corvus.Text.Json.Jsonata.Tests --filter "TestCategory!=failing&TestCategory!=outerloop"
# JMESPath conformance
dotnet test --project tests\Corvus.Text.Json.JMESPath.Tests --filter "TestCategory!=failing&TestCategory!=outerloop"
# YAML conformance
dotnet test --project tests\Corvus.Text.Json.Yaml.Tests --filter "TestCategory!=failing&TestCategory!=outerloop"
# JSONPath conformance
dotnet test --project tests\Corvus.Text.Json.JsonPath.Tests --filter "TestCategory!=failing&TestCategory!=outerloop"
# JSONPath code-gen
dotnet test --project tests\Corvus.Text.Json.JsonPath.CodeGeneration.Tests --filter "TestCategory!=failing&TestCategory!=outerloop"| Project | Tests |
|---|---|
Corvus.Text.Json.Tests | Core library: parsing, mutation, schema validation, JSON Schema Test Suite (all drafts via JsonSchemaTestSuite/), standalone evaluator (StandaloneEvaluatorTestSuite/), and annotation collection (AnnotationTestSuite/) |
Corvus.Text.Json.Validator.Tests | Dynamic schema validator (runtime compilation) |
Corvus.Text.Json.Jsonata.Tests | JSONata runtime conformance |
Corvus.Text.Json.Jsonata.CodeGeneration.Tests | JSONata code generation |
Corvus.Text.Json.Jsonata.SourceGenerator.Tests | JSONata source generator integration |
Corvus.Text.Json.JMESPath.Tests | JMESPath runtime conformance |
Corvus.Text.Json.JMESPath.CodeGeneration.Tests | JMESPath code generation |
Corvus.Text.Json.JMESPath.SourceGenerator.Tests | JMESPath source generator integration |
Corvus.Text.Json.JsonPath.Tests | JSONPath (RFC 9535) runtime conformance |
Corvus.Text.Json.JsonPath.CodeGeneration.Tests | JSONPath code generation |
Corvus.Text.Json.JsonPath.SourceGenerator.Tests | JSONPath source generator integration |
Corvus.Text.Json.Yaml.Tests | YAML conformance |
Corvus.Yaml.SystemTextJson.Tests | YAML ↔ JSON (System.Text.Json-only variant) |
Corvus.Text.Json.JsonLogic.Tests | JsonLogic runtime |
Corvus.Text.Json.JsonLogic.CodeGeneration.Tests | JsonLogic code generation |
Corvus.Text.Json.JsonLogic.SourceGenerator.Tests | JsonLogic source generator integration |
Corvus.Numerics.Tests | BigNumber / BigInteger arithmetic |
Corvus.Text.Json.Patch.Tests | RFC 6902 JSON Patch |
Corvus.Text.Json.CodeGenerator.Tests | CLI code generator |
Corvus.Text.Json.Migration.Analyzers.Tests | V4→V5 migration analyzers |
Corvus.Text.Json.Analyzers.Tests | Roslyn analyzers |
Plus 6 supporting model/utility projects that generate types consumed by other tests.
net9.0;net10.0;netstandard2.0;netstandard2.1net10.0;net481 (all projects). CodeGenerator.Tests is an empty assembly on net481.dotnet test -f net10.0 ...Use dotnet-coverage (Microsoft Code Coverage), not Coverlet. Coverlet 10.0.0 has a known instrumentation bug that reports 0% for many types despite tests exercising the code.
-fNEVER pass -f net10.0 when collecting baseline or full coverage. This misses all #if !NET / #if NETSTANDARD2_0 code paths (unsafe pointer fallbacks, polyfills, etc.) and produces incomplete results. Omit -f entirely — both TFMs run and dotnet-coverage merges them automatically. Only use -f for targeted single-test-class verification during iterative improvement.
# 1. Build once
dotnet build Corvus.Text.Json.slnx
# 2. Collect coverage — all TFMs (dotnet-coverage merges automatically)
dotnet-coverage collect `
--output TestResults\coverage.cobertura.xml `
--output-format cobertura `
-s dotnet-coverage.settings.xml `
"dotnet test --solution Corvus.Text.Json.slnx --filter `"TestCategory!=failing&TestCategory!=outerloop`" --no-build"All test projects target both net10.0 and net481. Running without -f executes tests on both TFMs, and dotnet-coverage produces a single merged Cobertura XML. This captures TFM-conditional code paths (e.g., #if NETSTANDARD2_0 polyfill branches, net481 fallback code) that a single-TFM run would miss.
Full suite coverage runs ~150K tests across 21 test projects × 2 TFMs and takes 30–45 minutes.
For targeted debugging, you can collect coverage for a single TFM:
dotnet-coverage collect `
--output TestResults\coverage-net10.0.cobertura.xml `
--output-format cobertura `
-s dotnet-coverage.settings.xml `
"dotnet test --solution Corvus.Text.Json.slnx -f net10.0 --filter `"TestCategory!=failing&TestCategory!=outerloop`" --no-build"Note: single-TFM runs miss TFM-conditional branches. Use the all-TFM approach above for accurate coverage baselines.
dotnet-coverage collect `
--output TestResults\mytest.cobertura.xml `
--output-format cobertura `
-s dotnet-coverage.settings.xml `
"dotnet test --solution Corvus.Text.Json.slnx -f net10.0 --filter `"FullyQualifiedName~MyTestClass&TestCategory!=failing&TestCategory!=outerloop`" --no-build"dotnet-coverage.settings.xml in the repo root filters coverage to published library assemblies only (18 assemblies including Corvus.Numerics)-f automatically merges both TFMsdotnet build Corvus.Text.Json.slnx first, then --no-build in the test commandfilename attributes — use os.path.basename() or equivalent when parsing--collect:"XPlat Code Coverage" (Coverlet) reports 0% coverage for many types including ref structs, static classes, and even regular sealed classes. This was verified by running the same tests with both tools — dotnet-coverage correctly reported 65–92% coverage for types that Coverlet reported as 0%.
The dotnet-coverage.settings.xml file controls which assemblies are instrumented and which source files are excluded. It includes all published V5 library assemblies plus V4 code generation assemblies. If you add a new published assembly, add a corresponding <ModulePath> entry.
Source exclusions configured in the settings file:
src-v4/Corvus.Json.ExtendedTypes/Corvus.Json/GeneratedCoreTypes/ — V4 CLI-generated core types (~144 files) that inflate the denominator without meaningful coverage value*.g.cs files under obj/ — Roslyn source-generator output (regex generators, JSON schema generators, etc.)SR.cs and *.Designer.cs — auto-generated resource string files that are not meaningfully testableWhen parsing Cobertura XML manually, apply the same exclusions: skip <class> entries whose filename contains GeneratedCoreTypes, has an obj directory segment, ends with SR.cs, or ends with .Designer.cs. Failure to exclude these will significantly undercount coverage for packages with resource files (e.g., Validator has 130 untestable lines in SR.cs + Strings.Designer.cs).
The Cobertura XML has <class> elements inside <package> elements. Each <class> has a filename attribute and <line> children with number, hits, and optional condition-coverage attributes.
Important: Partial classes and compiler-generated closures (<>c) appear as separate <class> entries for the same file. When computing per-file coverage, aggregate across all <class> entries that share the same filename:
import xml.etree.ElementTree as ET, os
def get_coverage_by_file(xmlfile):
tree = ET.parse(xmlfile)
root = tree.getroot()
results = {}
for cls in root.iter('class'):
fn = cls.get('filename', '')
basename = os.path.basename(fn)
if basename not in results:
results[basename] = {'covered': set(), 'total': set()}
for l in cls.findall('.//line'):
num = int(l.get('number', 0))
results[basename]['total'].add(num)
if int(l.get('hits', 0)) > 0:
results[basename]['covered'].add(num)
return resultsUse sets (not counts) to avoid double-counting lines that appear in multiple <class> entries.
When writing tests to close coverage gaps, always verify that the target lines are actually covered — "tests pass" does NOT mean "target code paths exercised." Iterate until every target line is covered or you have verified evidence that a path is unreachable. Remove any tests that do not contribute novel coverage.
dotnet-coverage collect `
--output TestResults\verify.cobertura.xml `
--output-format cobertura `
-s dotnet-coverage.settings.xml `
"dotnet test --solution Corvus.Text.Json.slnx --filter `"FullyQualifiedName~MyNewTestClass&TestCategory!=failing&TestCategory!=outerloop`" --no-build"hits > 0Source<TContext> across all .cs files finds zero call sites"). Do not assert unreachability without proofCommon pitfalls that cause this mismatch:
SetProperty<TContext>(name, context, delegate) exercises the delegate overload, NOT Source<TContext> — those are separate code pathsSource<TContext> that delegates to the base JsonElement.Source<TContext> — test through the generated type's CreateBuilder<TContext> to cover the base typeGenerated code is most of what the compiler sees in the model projects (source generator trees in the OpenAPI model projects and the recipes, checked-in Generated, B and C folders elsewhere), and analyzer time was most of those builds. Three settings keep analyzers off it; none of them touches compiler diagnostics (nullable warnings, CS0618 and so on still report in generated files).
| Setting | Where | What it does |
|---|---|---|
<RunAnalyzers>false</RunAnalyzers> | projects whose every type is generated (tests/Corvus.Text.Json.Tests.GeneratedModels*, src/Corvus.Text.Json.AsyncApi26, src/Corvus.Text.Json.AsyncApi30, tests/Corvus.Text.Json.Tests.MigrationModels.V5) | no analyzer runs at all; generators still run |
analyzers/generated-code.globalconfig (passed to every project by the root Directory.Build.targets) plus the generated [*.cs] region of .editorconfig | repository-wide | analyzers that analyse generated code (GeneratedCodeAnalysisFlags.Analyze, the default for an analyzer that never configures it: CA2252, CA1418, CA1420, CA1421 and the rest) get every diagnostic set to none globally, which makes the analyzer driver skip them on source generator trees (csc gives those trees no per-tree options), and restored to its effective severity for files on disk, so hand-written code keeps exactly the analysis it had. Analyzers that opt out of generated code (StyleCop, Roslynator, most NetAnalyzers, every Corvus analyzer) are already skipped on generated trees and need nothing. |
the generated [{docs/ExampleRecipes/*/Generated,...}/**.cs] section of .editorconfig | checked-in generator output inside hand-written projects | every analyzer diagnostic hidden, and the analyzers above skipped per tree (not generated_code = true: that also switches off the project nullable context for a file without the auto-generated header, which three hand-maintained V4 core-type files are) |
the RemoveRoslynMetaAnalyzers target in the root Directory.Build.targets | every project without IsRoslynComponent | removes the Roslyn meta-analyzers (RS rules for analyzer authors, which analyse generated code) that Microsoft.CodeAnalysis.Analyzers brings into every consumer of Microsoft.CodeAnalysis, directly or through a project reference. A PackageReference with ExcludeAssets cannot do this: NuGet unions the asset flags of every path to a package, and the transitive path keeps the analyzers. |
update-generated-code-analyzer-config.ps1 writes the global config and the .editorconfig region from the analyzers actually in use: the SDK's NetAnalyzers (the SDK global.json selects) and every analyzer package in the restore graph of a project that references the source generator or owns a generated folder. It runs analyzers/AnalyzerProbe.cs (a file-based C# app, so the analyzers load on the Roslyn version they were built for) to read each analyzer's generated-code flags and descriptors. Run it after changing global.json, an analyzer package version or a project's analyzer references, and commit the result:
.\update-generated-code-analyzer-config.ps1 # needs the main solution restored
.\update-generated-code-analyzer-config.ps1 -Check # the gate: exit 1 when the files are stale (CI runs it after the build)The script fails on purpose when a directory named Generated, B, C or GeneratedCoreTypes holding C# files matches none of its folder globs (add the folder to $GeneratedFolderGlobs), and when a restored diagnostic is also configured by hand in an .editorconfig (decide which setting wins and remove one). Remaining analyzer work on generated code, by design: compilation start and end actions run once per compilation for every analyzer; symbol-start analyzers and analyzers with a non-configurable diagnostic cannot be skipped per tree (the script warns about the active ones); the IDE ignores .editorconfig for source-generated documents, so opt-in analyzers still analyse them live.
To see what a build spends on analyzers, build one project with -p:ReportAnalyzer=true -v:d after touching its schema and read the "Total analyzer execution time" table in the log.
Building individual .csproj files produces output in bin\{TFM}\ (no config subfolder). Building via .slnx produces bin\{Config}\{TFM}\. Stale bin\{TFM}\ directories cause test failures because relative paths in appsettings.json resolve incorrectly. Fix: always use -c Debug or -c Release explicitly, and delete stale bin\{TFM}\ dirs.
Running dotnet test without TestCategory!=failing&TestCategory!=outerloop will run tests that are expected to fail or are slow stress tests, producing misleading failures.
If generated types are missing, ensure you're building in the correct configuration. Check obj\{Config}\{TFM}\generated\ for .g.cs files.
corvus-benchmarks skillcorvus-codegen skillcorvus-test-suite-regeneration skill.github/copilot-instructions.md© corvus-dotnet, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in .github/skills/corvus-build-and-test of corvus-dotnet/Corvus.JsonSchema.
Open the folder on GitHubat commit 973097f
Corvus Build And Test next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Corvus Build And Test this skillcorvus-dotnet/Corvus.JsonSchema | 199 | — | ~5.5k | Automated safety check: Pass | Apache-2.0 | |
| Raven Test Triagemarinasundstrom/raven | 108 | — | ~1.4k | Automated safety check: Pass | MIT | |
| Run Testsrunceel/ReactiveProperty | 944 | — | ~3.6k | Automated safety check: Pass | MIT | |
| MAUI UI Test Writerdotnet/maui | 23k | — | ~3k | Automated safety check: Pass | MIT | |
| Exp Test Maintainabilitydotnet/skills | 5.6k | 1 repos | ~2.5k | Automated safety check: Pass | MIT | |
| Run Testsmicrosoft/testfx | 1k | — | ~4.2k | Automated safety check: Pass | MIT |
marinasundstrom/raven
Testing and stabilization workflow for the Raven compiler test suite.
runceel/ReactiveProperty
Runs .NET tests with dotnet test. An agent skill from runceel/ReactiveProperty.
dotnet/maui
Writes UI tests that reproduce a GitHub issue in .NET MAUI and keeps iterating until the tests actually fail, proving they catch the bug.
dotnet/skills
Detects duplicate boilerplate, copy-paste tests, and structural maintainability issues across .NET test suites.
microsoft/testfx
For dotnet test: figures out which test platform (VSTest vs Microsoft.Testing.Platform) a project uses from Directory.Build.props, global.json, and .csproj, then picks the matching command syntax.
brunosabot/streamline-card
A skill your agent uses when the user asks to fix a bug, references a GitHub issue number, or describes an issue and wants a fix.
corvus-dotnet/Corvus.JsonSchema
Understand and work with the Roslyn analyzers shipped with Corvus.Text.Json.
corvus-dotnet/Corvus.JsonSchema
Run, interpret, and maintain BenchmarkDotNet benchmarks for JSON Schema validation and query languages.
corvus-dotnet/Corvus.JsonSchema
Test Corvus.JsonSchema against the JSON Schema Test Suite using Bowtie, the cross-implementation meta-validator.
corvus-dotnet/Corvus.JsonSchema
Write allocation-efficient buffer code in Corvus.JsonSchema using the codebase's established three-tier pooling pattern: stackalloc → ArrayPool → ThreadStatic caches.
corvus-dotnet/Corvus.JsonSchema
Eliminate hand-rolled POCO record<-document string seams — types/paths that materialize a managed string (or List<string/Dictionary) between a bytes SOURCE (a parsed UTF-8 body, a DB column, a…
corvus-dotnet/Corvus.JsonSchema
Generate strongly-typed C from JSON Schema using the Roslyn source generator or the corvusjson CLI tool.
Works with
Categories
Build, test, and run the Corvus.JsonSchema solution correctly. JsonSchema.JsonSchema solution correctly.
Corvus Build And Test fits situations like: : building the solution; writing new test files; diagnosing test failures; understanding TFM targeting.
Run `npx skills add corvus-dotnet/Corvus.JsonSchema --skill corvus-build-and-test -a claude-code`. Or copy the skill folder (.github/skills/corvus-build-and-test in corvus-dotnet/Corvus.JsonSchema) into .claude/skills/corvus-build-and-test in your project. Claude Code loads it when a task matches its description.
Run `npx skills add corvus-dotnet/Corvus.JsonSchema --skill corvus-build-and-test -a codex`. Or copy the skill folder (.github/skills/corvus-build-and-test in corvus-dotnet/Corvus.JsonSchema) into .agents/skills/corvus-build-and-test in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add corvus-dotnet/Corvus.JsonSchema --skill corvus-build-and-test -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/corvus-build-and-test, .gemini/skills/corvus-build-and-test, .github/skills/corvus-build-and-test and .opencode/skills/corvus-build-and-test in your project.
Going by SKILL.md and its folder, Corvus Build And Test needs the command-line tools its instructions call (dotnet).
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Corvus Build And Test is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 5.5k tokens (SKILL.md is roughly 22k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Corvus Build And Test: Raven Test Triage (marinasundstrom/raven, 108 stars), Run Tests (runceel/ReactiveProperty, 944 stars), MAUI UI Test Writer (dotnet/maui, 23k stars) and Exp Test Maintainability (dotnet/skills, 5.6k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
corvus-dotnet (a GitHub organization) maintains it in corvus-dotnet/Corvus.JsonSchema, which has 199 GitHub stars. The repository holds 28 skills in this directory. The repository was last updated on October 9, 2026.
Source: corvus-dotnet/Corvus.JsonSchema on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.