dotnet-testing
Skill1 starsChanged 3 months agoApache-2.0View on GitHub
Use for designing, implementing, or reviewing automated tests for C#/.NET services and microservices.
4 other projects use a version of this.
Adopted by
Most recently taken up by
- AllThingsSmitty/proven-skillstheir own version, first seen Oct 6, 2026
- kevintsengtw/dotnet-testing-agent-skillstheir own version, first seen Sep 30, 2026
- solakpetri/Enzo.Ai.Skillstheir own version, first seen Aug 13, 2026
- hkarpinen/agent-skillstheir own version, first seen Apr 15, 2026
Other versions4 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 4
- kevintsengtw/dotnet-testing-agent-skills★ 29same name
- AllThingsSmitty/proven-skills★ 1same name
- hkarpinen/agent-skills★ 1same name
- solakpetri/Enzo.Ai.Skills★ 1same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository14 other files it gives its agents.
- aspnet-core-apiSkill
- aspnet-mvcSkill
- blazorSkill
- docker-dotnetSkill
- dotnet-expertSkill
- dotnet-file-based-appsSkill
- dotnet-messagingSkill
- dotnet-observabilitySkill
- dotnet-performanceSkill
- dotnet-version-guideSkill
- efcore-postgresqlSkill
- gitlab-basicsSkill
- gitlab-ci-dotnetSkill
- pandocSkill
The file
We split this skill into the rules it gives an agent
8 rules. 0 are common, 8 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 3 edited versions we read keep these.
8
Distinctive
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 25
Use for unit, integration, API, persistence, messaging, contract, regression, and end-to-end test design.
- Distinctive: line 29
Do not add tests that only duplicate implementation details or use fake providers where real provider behavior matters.
- Distinctive: line 35
Use WebApplicationFactory for the API composition root.
- Distinctive: line 36
Use Testcontainers for PostgreSQL, RabbitMQ, or other dependencies when provider behavior matters.
- Distinctive: line 37
Use contract tests for independently deployed service boundaries.
- Distinctive: line 38
Keep tests isolated, deterministic, and safe to run in parallel.
- Distinctive: line 48
Run formatting, build, the smallest relevant test scope, then the full suite.
- Distinctive: line 77
Use WebApplicationFactory for the real application composition.
“Common” is measured: kept by at least 6 in 10 of the 3 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
.NET Testing
When to Use
Use for unit, integration, API, persistence, messaging, contract, regression, and end-to-end test design.
When Not to Use
Do not add tests that only duplicate implementation details or use fake providers where real provider behavior matters.
Strategy
- Unit-test pure domain rules and deterministic application services.
- Integration-test HTTP, authentication, serialization, persistence, migrations, and external boundaries.
- Use WebApplicationFactory for the API composition root.
- Use Testcontainers for PostgreSQL, RabbitMQ, or other dependencies when provider behavior matters.
- Use contract tests for independently deployed service boundaries.
- Keep tests isolated, deterministic, and safe to run in parallel.
- Assert observable behavior, status codes, error contracts, state transitions, and emitted messages.
- Control time, randomness, IDs, and retries through injectable abstractions.
Cases
Cover success, validation, not-found, conflict, authorization, cancellation, timeout, duplicate delivery, retry, and infrastructure failure where relevant. Avoid sleeps; await readiness or poll with a bounded timeout.
Quality Gate
Run formatting, build, the smallest relevant test scope, then the full suite. Report commands and failures accurately.
dotnet format --verify-no-changes
dotnet build --no-restore
dotnet test --no-buildExample: API Integration Test
public sealed class OrdersApiTests
: IClassFixture<WebApplicationFactory<Program>>
{
private readonly HttpClient _client;
public OrdersApiTests(WebApplicationFactory<Program> factory)
=> _client = factory.CreateClient();
[Fact]
public async Task Get_missing_order_returns_404()
{
using var response = await _client.GetAsync(
"/api/orders/00000000-0000-0000-0000-000000000001");
Assert.Equal(HttpStatusCode.NotFound, response.StatusCode);
}
}Use WebApplicationFactory for the real application composition. Replace the database with a test container or isolated test database when SQL/provider behavior matters; do not use EF Core InMemory as a substitute for PostgreSQL.
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.

