csharp-spector-coverage-gaps
Skill5.9k starsChanged 4 months agoMITView on GitHub
Discovers and implements gaps in Spector test coverage for the C# HTTP client emitter. Use when asked to find missing Spector scenarios, add Spector test coverage, or implement a specific Spector spec for the C# emitter.
- Deletes or force-pushes
Trending
Quiet since September.about the whole repository
Who's talking about microsoft/typespec
- neovim/nvim-lspconfig“Support for typespec”GitHub · Jan 23, 2024 · 11 reactions
- github-linguist/linguist“Add TypeSpec”GitHub · Mar 27, 2024 · 9 reactions
- orval-labs/orval“Support unevaluatedProperties OpenAPI 3.1”GitHub · Jun 11, 2025 · 5 reactions
- Azure/autorest.typescript“Emitters should not crash on purpose”GitHub · Feb 20, 2025 · 2 reactions
- Azure/azure-sdk-for-java“Finalize removing JUnit, Reactor Test, and SLF4J Simple test dependencies”GitHub · Sep 25, 2024 · 2 reactions
The biggest 5 of 37 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 37
Talked about on GitHub, Bluesky and Hacker News (37 times).
On GitHub · 32
- Jan 23, 2024Support for typespec — neovim/nvim-lspconfig11 reactions · 3 comments
- Mar 27, 2024Add TypeSpec — github-linguist/linguist9 reactions · 10 comments
- Jun 11, 2025Support unevaluatedProperties OpenAPI 3.1 — orval-labs/orval5 reactions · 1 comment
- Feb 20, 2025Emitters should not crash on purpose — Azure/autorest.typescript2 reactions
- Sep 25, 2024Finalize removing JUnit, Reactor Test, and SLF4J Simple test dependencies — Azure/azure-sdk-for-java2 reactions · 1 comment
27 more on GitHub
- Sep 20, 2026deps(deps-dev): bump the lockfile-updates group in /tools/schema-sync with 4 updates — Imagine-That-Ai/BurnBar1 reaction · 5 comments
- Sep 10, 2026Design required: asynchronous messaging contracts and AsyncAPI emission — cataggar/typespec1 reaction · 1 comment
- Sep 9, 2026deps(deps-dev): bump @typespec/compiler from 1.15.0 to 1.16.0 in /tools/schema-sync — Imagine-That-Ai/BurnBar1 reaction · 5 comments
- Aug 20, 2026deps(deps-dev): bump the lockfile-updates group across 1 directory with 4 updates — Imagine-That-Ai/BurnBar1 reaction · 3 comments
- Aug 6, 2026Fix Experimental Visitor Gaps — Azure/azure-sdk-for-net1 reaction
- Jul 25, 2026deps(deps-dev): bump the lockfile-updates group across 1 directory with 4 updates — Imagine-That-Ai/BurnBar1 reaction · 9 comments
- Jul 25, 2026deps(deps-dev): bump the lockfile-updates group in /tools/schema-sync with 4 updates — Imagine-That-Ai/BurnBar1 reaction · 2 comments
- Jul 13, 2026Add AZC0002 Suppression & ForwardsClientCalls attribute for Mgmt Back Compat Methods — Azure/azure-sdk-for-net1 reaction
- May 28, 2026[Bug]: tcgc mismatched enum type names for /specs/type/file/main.tsp — Azure/typespec-azure1 reaction · 1 comment
- Apr 22, 2026Adopt Additional XML Spector Tests in Azure Generator — Azure/azure-sdk-for-net1 reaction · 1 comment
- Apr 21, 2026Adopt Spector Header Encoding Scenarios — Azure/azure-sdk-for-net1 reaction
- Mar 30, 2026Bump @typespec/http-specs in Azure Generator & Adopt New XML Spector Tests — Azure/azure-sdk-for-net1 reaction
- Mar 2, 2026Emit multiple api-versions in our metadata file for multiple services — Azure/azure-sdk-for-net1 reaction
- Mar 2, 2026[python] add test case for https://github.com/Azure/typespec-azure/pull/3923 — msyyc/typespec1 reaction
- Mar 2, 2026[python] add test case for https://github.com/Azure/typespec-azure/pull/3922 — msyyc/typespec1 reaction
- Mar 2, 2026[python] add test case for https://github.com/Azure/typespec-azure/pull/3729 — msyyc/typespec1 reaction
- Feb 26, 2026Update XML Visitor to Use XmlRequestContent for FromEnumerable helper method — Azure/azure-sdk-for-net1 reaction · 1 comment
- Feb 26, 2026[python] add test case for https://github.com/microsoft/typespec/pull/9660 — msyyc/typespec1 reaction
- Feb 17, 2026Adopt New XML Pageable Spector Scenarios — Azure/azure-sdk-for-net1 reaction
- Jan 5, 2026[spector] Add a POST long running API whose response type is `bytes` — Azure/typespec-azure1 reaction · 2 comments
- Jul 3, 2025Automation is not updating the mgmt package.json version to reference new Azure generator version — Azure/azure-sdk-for-net1 reaction
- Jul 2, 2025Add integration test cases Response.StatusCodeRange — Azure/autorest.typescript1 reaction
- May 8, 2026[http-client-csharp-mgmt] Mgmt SDK regen broken by upstream BaseModelProvider resolution change (microsoft/typespec#10600) — Azure/azure-sdk-for-net0 reactions
- Mar 27, 2026Incorrect XML ETag Deserialization in Model Properties — Azure/azure-sdk-for-net0 reactions
- Mar 11, 2026[Bug]: Error: Unimplemented: transformJsonExprForType: Enum — timotheeguerin/typespec0 reactions · 1 comment
- Mar 11, 2026[Bug]: Error: Unimplemented: transformJsonExprForType: Enum — timotheeguerin/typespec0 reactions · 1 comment
- May 13, 2024Microsoft Typespec — PrismJS/prism0 reactions · 1 comment
On Bluesky · 4
- Jan 30, 2024🔥 Hot Repo! 🔥 (100+ new stars) 📦 microsoft / typespec ⭐ 1,776 (+120) 🗒 TypeScript — @github-trending-js.bsky.social2 likes and reposts · 1 reply
- May 31, 2024📦 microsoft / typespec ⭐ 3,427 (+76) 🗒 TypeScript — @github-trending-js.bsky.social1 likes and repost
- Apr 30, 2024🔥 Hot Repo! 🔥 (100+ new stars) 📦 microsoft / typespec ⭐ 2,578 (+177) 🗒 TypeScript — @github-trending-js.bsky.social1 likes and repost · 1 reply
- Jan 26, 2024🔥 Hot Repo! 🔥 (100+ new stars) 📦 microsoft / typespec ⭐ 1,311 (+151) 🗒 TypeScript — @github-trending-js.bsky.social1 likes and repost · 1 reply
On Hacker News · 1
- Sep 20, 2024TypeSpec1 point · 1 comment
In this repository13 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .github/copilot-instructions.mdCopilot instructions
- packages/http-client-java/.github/copilot-instructions.mdCopilot instructions
- packages/http-client-js/.github/copilot-instructions.mdCopilot instructions
- code-reviewSkill
- emitter-prep-for-prSkill
- http-client-python-bump-and-releaseSkill
- minimal-reproSkill
- pnpm-formatSkill
- writing-python-sdk-spector-mock-api-testsSkill
- diff-upstreamSkill
- generate-from-typespecSkill
- test-unbranded-emitterSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
16 rules. About 0 are common, 3 are distinctive, and 13 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
13
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 46
Before starting, ensure the build environment is ready.
- Very specific: line 79
All other specs from @typespec/http-specs are included by default.
- Very specific: line 141
All Spector libraries committed to the repository are stubbed.
- Very specific: line 157
If node_modules is not installed, read from the source at <repo-root>/packages/http-specs/specs/.
- Very specific: line 165
Read the @scenarioDoc decorators to understand:
- Very specific: line 176
Use Generate.ps1 with a filter to generate only the specific spec.
- Very specific: line 390
If a new Spector test project directory was created (new spec), a project reference may be needed in TestProjects.Spector.Tests.csproj:
- Very specific: line 396
Check existing references to match the pattern.
- Distinctive: line 432
If you need more control, you can manually generate unstubbed, build, and run tests:
- Very specific: line 481
Tests auto-skip: when the generated client is stubbed — it's safe to write tests for stubbed specs.
- Very specific: line 482
Only commit: test files (.cs), .csproj changes, and tspconfig.yaml if needed.
- Very specific: line 483
Follow existing test naming conventions: <Feature>Tests.cs in the matching directory.
- Very specific: line 484
Use [SpectorTest] attribute (not [Test]) for all Spector tests — it enables auto-skip for stubbed implementations.
- Very specific: line 485
All test classes must inherit from SpectorTestBase.
- Distinctive: line 486
Do not add change logs — the http-client-csharp instructions say they are not needed.
- Distinctive: line 487
Do not comment out or delete existing tests.
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Discovering and implementing Spector coverage gaps for http-client-csharp
Overview
This skill discovers which Spector scenarios the C# emitter (@typespec/http-client-csharp) does not yet cover, then implements the missing test(s). Spector scenarios are defined in @typespec/http-specs and @azure-tools/azure-http-specs. The coverage dashboard is at https://typespec.io/can-i-use/http/.
Note:
{PKG}refers to<repo-root>/packages/http-client-csharpthroughout this document.
Inputs
You may receive one of:
- "Find coverage gaps" — discover all missing scenarios and present them.
- Spector spec link — a link to a specific spec under
packages/http-specs/specs/...orpackages/azure-http-specs/specs/.... - Spec name — e.g.,
http/encode/duration,http/type/model/flatten,http/type/union/discriminated.
Output
- A report of coverage gaps (when discovering).
- New or updated C# NUnit test file(s) under
{PKG}/generator/TestProjects/Spector.Tests/Http/. - Updated
{PKG}/generator/TestProjects/Spector.Tests/TestProjects.Spector.Tests.csprojif a new project reference is needed. - Regenerated client code (via
Generate.ps1).
Workflow
- Ensure prerequisites are met (npm ci, npm run build)
- Discover coverage gaps or identify the target spec
- Verify the spec is not in the failing specs list
- Generate the C# client for the target spec (unstubbed with
-Stubbed $false, or use Test-Spector.ps1) - Read the generated client to understand the API surface
- Read the TypeSpec scenario file to understand expected behavior
- Find or create the test file
- Implement the test(s) following existing conventions
- Run the tests using
Test-Spector.ps1 -filter "<spec-path>" - Validate all tests pass
Prerequisites — Environment setup
Before starting, ensure the build environment is ready. These instructions supersede the repo-root pnpm instructions.
- Install dependencies (from
{PKG}):cd {PKG} npm ci - Build the package:
npm run build
⚠️ Do NOT run
pnpm installorpnpm buildat the repo root — only the http-client-csharp package build is needed.
Step 1 — Discover coverage gaps
How specs are filtered
The file {PKG}/eng/scripts/Spector-Helper.psm1 defines which specs are included/excluded:
Failing specs are defined in {PKG}/eng/scripts/Spector-Helper.psm1 in the $failingSpecs array. Always check that file for the current list — do not hardcode specs here.
Azure allow-list (only these Azure specs are tested):
http/client/structure/client-operation-grouphttp/client/structure/defaulthttp/client/structure/multi-clienthttp/client/structure/renamed-operationhttp/client/structure/two-operation-grouphttp/resiliency/srv-driven
All other specs from @typespec/http-specs are included by default.
Discovering gaps programmatically
Compare available specs against existing tests. Run this from {PKG}:
Import-Module "{PKG}/eng/scripts/Spector-Helper.psm1" -DisableNameChecking -Force
# Get all valid specs
$specs = Get-Sorted-Specs | ForEach-Object { Get-SubPath $_ }
# Get all test files
$testFiles = Get-ChildItem -Path "{PKG}/generator/TestProjects/Spector.Tests/Http" -Recurse -Filter "*Tests.cs" |
ForEach-Object { $_.FullName }
# For each spec, check if a corresponding test directory/file exists
foreach ($spec in $specs) {
$specParts = $spec -replace '/', '\' -split '\\'
# Convert to expected test path segments
$testPath = "{PKG}/generator/TestProjects/Spector.Tests/Http"
# ... check if test exists
}Alternatively, manually compare the list of specs against existing test files:
Existing test coverage (test directories under Spector.Tests/Http/):
Authentication/ApiKey, Authentication/Http/Custom, Authentication/OAuth2, Authentication/Union
Client/Naming, Client/Structure/{ClientOperationGroup,Default,MultiClient,RenamedOperation,TwoOperationGroup}
Documentation
Encode/{Array,Bytes,DateTime,Numeric}
Parameters/{Basic,BodyOptionality,CollectionFormat,Path,Query,Spread}
Payload/{ContentNegotiation,JsonMergePatch,MediaType,Multipart,Pageable,Xml}
Resiliency/SrvDriven/{V1,V2}
Response/StatusCodeRange
Routes
Serialization/EncodedName/Json
Server/{Endpoint/NotDefined,Path/Multiple,Path/Single,Versions/NotVersioned,Versions/Versioned}
SpecialHeaders/{ConditionalRequest,Repeatability}
Versioning/{Added,MadeOptional,Removed,RenamedFrom,ReturnTypeChangedFrom,TypeChangedFrom}
_Type/{Dictionary,Model/Empty,Model/Inheritance/*,Model/Usage,Model/Visibility,Property/*,Scalar,Union,_Array,_Enum/*}Accurate gap detection
The naive approach of matching spec paths to test directory names can produce false positives because:
- C# reserved words get underscore-prefixed in test dirs (e.g.,
type/→_Type/,array→_Array,enum→_Enum) - kebab-case gets converted to PascalCase (e.g.,
content-negotiation→ContentNegotiation) - Some test files cover a parent spec but not sub-specs (e.g.,
UnionTests.cscoverstype/unionbut NOTtype/union/discriminated)
To find real gaps, verify each candidate by checking whether a test directory exists for the spec's exact path, including sub-paths. A test file at a parent level does NOT cover child specs.
Known failing specs are tracked in $failingSpecs in {PKG}/eng/scripts/Spector-Helper.psm1. Always read that file for the current list.
Important: The gap list evolves over time. Always re-run the comparison to get current gaps. All committed Spector libraries are stubbed —
[SpectorTest]will auto-skip tests unless you regenerate with-Stubbed $falseor useTest-Spector.ps1.
Understanding stubbed vs unstubbed generation
All Spector libraries committed to the repository are stubbed. Generate.ps1 defaults to $Stubbed = $true, which passes --option @typespec/http-client-csharp.generator-name=StubLibraryGenerator to the emitter. Stubbed clients use expression-bodied constructors (=>) instead of block bodies ({ }), and the [SpectorTest] attribute automatically skips tests for stubbed clients.
To generate unstubbed code (for local testing), pass -Stubbed $false:
pwsh eng/scripts/Generate.ps1 -filter "<spec-path>" -Stubbed $falseHowever, the recommended way to test is via Test-Spector.ps1 (see Step 7), which handles the unstubbed regeneration, test execution, and directory restoration automatically.
Step 2 — Read the spec to understand expected behavior
Spec files live in {PKG}/node_modules/@typespec/http-specs/specs/ (or @azure-tools/azure-http-specs/specs/ for Azure specs).
If node_modules is not installed, read from the source at <repo-root>/packages/http-specs/specs/.
Each spec contains:
main.tsp— the TypeSpec definition with@scenarioand@scenarioDocdecoratorsclient.tsp(optional) — client-level customizations; takes priority overmain.tspduring generationtspconfig.yaml(optional in the Spector test project) — C#-specific generation options
Read the @scenarioDoc decorators to understand:
- The HTTP method, path, and expected parameters
- The expected request body shape
- The expected response status code and body
- Any special behavior (e.g., "should return 204", "should send header X")
Step 3 — Generate the C# client for the target spec
Use Generate.ps1 with a filter to generate only the specific spec. By default, Generate.ps1 generates stubbed code (same as what is committed to the repo). To generate unstubbed code for local testing, pass -Stubbed $false:
cd {PKG}
# Generate unstubbed (for local testing/development)
pwsh eng/scripts/Generate.ps1 -filter "<spec-path>" -Stubbed $false
# Generate stubbed (default, matches what is committed to repo)
pwsh eng/scripts/Generate.ps1 -filter "<spec-path>"Examples:
# Single spec (unstubbed for testing)
pwsh eng/scripts/Generate.ps1 -filter "http/encode/duration" -Stubbed $false
# Versioning spec (generates v1 + v2 automatically)
pwsh eng/scripts/Generate.ps1 -filter "http/versioning/added" -Stubbed $falseThe generated code lands in {PKG}/generator/TestProjects/Spector/<spec-path>/src/Generated/.
Verify generation succeeded
# Check that client code was generated
Get-ChildItem "{PKG}/generator/TestProjects/Spector/<spec-path>/src/Generated/" -Filter "*Client.cs"Note: All committed Spector libraries are stubbed. The
[SpectorTest]attribute automatically skips tests for stubbed clients. UseTest-Spector.ps1(Step 7) to regenerate unstubbed, run tests, and restore automatically.
Step 4 — Read the generated client API surface
Browse the generated code to understand:
- Client class(es):
*Client.cs— the entry point(s) - Sub-clients: accessed via
Get*Client()methods - Operations: async methods like
GetAsync(),PutAsync(body),SendAsync() - Models: under
Models/— request/response shapes - Constructor signature:
new XClient(Uri endpoint, XClientOptions options)ornew XClient(Uri endpoint, KeyCredential credential, XClientOptions options)
Pay attention to:
- Method names (they map to TypeSpec operation names)
- Parameter types (models, primitives, BinaryData)
- Return types (
ClientResult,ClientResult<T>,AsyncPageable<T>)
Step 5 — Create or extend the test file
Directory and namespace conventions
The test directory structure mirrors the spec path with these transformations:
http/→Http/- kebab-case → PascalCase (e.g.,
content-negotiation→ContentNegotiation) type/→_Type/(leading underscore becauseTypeis a C# keyword)array→_Array(same reason)enum→_Enum(same reason)
Namespace pattern: TestProjects.Spector.Tests.Http.<PascalCasePath>
Example mappings:
| Spec path | Test directory | Namespace |
http/encode/duration | Http/Encode/Duration/ | TestProjects.Spector.Tests.Http.Encode.Duration |
http/type/union/discriminated | Http/_Type/Union/Discriminated/ | TestProjects.Spector.Tests.Http._Type.Union.Discriminated |
http/special-words | Http/SpecialWords/ | TestProjects.Spector.Tests.Http.SpecialWords |
Test file template
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
using System.Threading.Tasks;
using <GeneratedNamespace>;
using NUnit.Framework;
namespace TestProjects.Spector.Tests.Http.<Category>.<SubCategory>
{
public class <Name>Tests : SpectorTestBase
{
[SpectorTest]
public Task <ScenarioName>() => Test(async (host) =>
{
var response = await new <Client>(host, null).<Method>Async(<args>);
Assert.AreEqual(<expectedStatusCode>, response.GetRawResponse().Status);
});
}
}Common test patterns
Simple void operation (204 response):
[SpectorTest]
public Task SimpleOp() => Test(async (host) =>
{
var response = await new MyClient(host, null).DoThingAsync();
Assert.AreEqual(204, response.GetRawResponse().Status);
});GET with typed response:
[SpectorTest]
public Task GetValue() => Test(async (host) =>
{
var response = await new MyClient(host, null).GetValueAsync();
Assert.AreEqual("expected", response.Value);
});GET with model response:
[SpectorTest]
public Task GetModel() => Test(async (host) =>
{
var response = await new MyClient(host, null).GetModelAsync();
Assert.AreEqual("name", response.Value.Name);
Assert.AreEqual(42, response.Value.Age);
});PUT/POST with body:
[SpectorTest]
public Task SendModel() => Test(async (host) =>
{
var body = new MyModel("name", 42);
var response = await new MyClient(host, null).SendAsync(body);
Assert.AreEqual(204, response.GetRawResponse().Status);
});Round-trip (GET then PUT):
[SpectorTest]
public Task RoundTrip() => Test(async (host) =>
{
var client = new MyClient(host, null);
var getResult = await client.GetAsync();
var response = await client.PutAsync(getResult.Value);
Assert.AreEqual(204, response.GetRawResponse().Status);
});Error assertion:
[SpectorTest]
public Task InvalidKey() => Test((host) =>
{
var exception = Assert.ThrowsAsync<ClientResultException>(
() => new MyClient(host, new ApiKeyCredential("invalid"), null).CallAsync());
Assert.AreEqual(403, exception!.Status);
return Task.CompletedTask;
});Sub-client access:
[SpectorTest]
public Task SubClientOp() => Test(async (host) =>
{
var response = await new MyClient(host, null)
.GetSubClient()
.DoThingAsync();
Assert.AreEqual(204, response.GetRawResponse().Status);
});Pagination:
[SpectorTest]
public Task ListItems() => Test(async (host) =>
{
var items = new MyClient(host, null).GetItemsAsync();
int count = 0;
await foreach (var item in items)
{
count++;
}
Assert.Greater(count, 0);
});Additional imports commonly needed
using System;
using System.ClientModel; // ClientResult, ClientResultException, ApiKeyCredential
using System.IO; // For file/stream scenarios
using NUnit.Framework; // Test frameworkStep 6 — Update the .csproj if needed
If a new Spector test project directory was created (new spec), a project reference may be needed in TestProjects.Spector.Tests.csproj:
<ProjectReference Include="..\Spector\http\<spec-path>\src\<ProjectName>.csproj" />Check existing references to match the pattern. The project name typically matches the package-name from tspconfig.yaml or is derived from the namespace.
Only add a project reference if one doesn't already exist for the spec.
Step 7 — Build and run the tests
Recommended: Use Test-Spector.ps1
The Test-Spector.ps1 script is the recommended way to test Spector specs. It automatically:
- Regenerates the spec as unstubbed (so tests are not auto-skipped)
- Runs the tests for that spec
- Restores the directory to its original stubbed state
cd {PKG}
# Test a specific spec
pwsh eng/scripts/Test-Spector.ps1 -filter "<spec-path>"Example:
pwsh eng/scripts/Test-Spector.ps1 -filter "http/encode/duration"Run full Spector test suite
pwsh eng/scripts/Get-Spector-Coverage.ps1Manual approach (if needed)
If you need more control, you can manually generate unstubbed, build, and run tests:
cd {PKG}
# Generate unstubbed
pwsh eng/scripts/Generate.ps1 -filter "<spec-path>" -Stubbed $false
# Build
dotnet build generator
# Run only your new tests
dotnet test generator/TestProjects/Spector.Tests/TestProjects.Spector.Tests.csproj `
--filter "FullyQualifiedName~TestProjects.Spector.Tests.Http.<YourNamespace>"
# Restore the directory to stubbed state when done
git clean -xfd generator/TestProjects/Spector/<spec-path>
git restore generator/TestProjects/Spector/<spec-path>Step 8 — Handle special cases
Versioning specs
Versioning specs generate two clients (v1 and v2). Tests go in separate subdirectories:
Http/Versioning/<Name>/V1/<Name>V1Tests.cs
Http/Versioning/<Name>/V2/<Name>V2Tests.csGeneration is handled automatically by Generate.ps1 when the path contains versioning.
Srv-driven (resiliency) specs
Similar to versioning — generates v1 and v2 clients from old.tsp and main.tsp.
Specs with tspconfig.yaml
Some specs have a tspconfig.yaml in the Spector test project that overrides the package-name. Check {PKG}/generator/TestProjects/Spector/<spec-path>/tspconfig.yaml before importing the generated namespace.
Notes
- Do not modify
Spector-Helper.psm1to remove items from the failing list unless you're sure the generator now supports them. - All committed Spector libraries are stubbed —
Generate.ps1defaults to$Stubbed = $true. UseTest-Spector.ps1to temporarily regenerate unstubbed and run tests. - Tests auto-skip when the generated client is stubbed — it's safe to write tests for stubbed specs. They'll activate when
Test-Spector.ps1regenerates them unstubbed. - Only commit: test files (
.cs),.csprojchanges, andtspconfig.yamlif needed. - Follow existing test naming conventions:
<Feature>Tests.csin the matching directory. - Use
[SpectorTest]attribute (not[Test]) for all Spector tests — it enables auto-skip for stubbed implementations. - All test classes must inherit from
SpectorTestBase. - Do not add change logs — the http-client-csharp instructions say they are not needed.
- Do not comment out or delete existing tests.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

