Dotnet Testing
novotnyllc/dotnet-artisan
Defines .NET test strategy and implementation patterns across xUnit v3 (Facts, Theories, fixtures, IAsyncLifetime), integration testing (WebApplicationFactory, Testcontainers), Aspire testing…
Mandatory testing conventions for .NET (xUnit, AwesomeAssertions).
$ npx skills add macalbert/envilder --skill dotnet-testing -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install macalbert/envilder dotnet-testing --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/macalbert/envilder.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.github/skills/dotnet-testing .claude/skills/dotnet-testing && 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 "dotnet-testing" agent skill from https://github.com/macalbert/envilder/tree/main/.github/skills/dotnet-testing into .claude/skills/dotnet-testing/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "dotnet-testing", 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/macalbert/envilder/tree/main/.github/skills/dotnet-testingType 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 macalbert/envilder --skill dotnet-testing -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install macalbert/envilder dotnet-testing --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/macalbert/envilder.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.github/skills/dotnet-testing .agents/skills/dotnet-testing && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "dotnet-testing" agent skill from https://github.com/macalbert/envilder/tree/main/.github/skills/dotnet-testing into .agents/skills/dotnet-testing/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "dotnet-testing", 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 macalbert/envilder --skill dotnet-testing -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install macalbert/envilder dotnet-testing --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/macalbert/envilder.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.github/skills/dotnet-testing .cursor/skills/dotnet-testing && 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 "dotnet-testing" agent skill from https://github.com/macalbert/envilder/tree/main/.github/skills/dotnet-testing into .cursor/skills/dotnet-testing/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "dotnet-testing", 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/macalbert/envilder.git --path .github/skills/dotnet-testing--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 macalbert/envilder --skill dotnet-testing -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install macalbert/envilder dotnet-testing --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/macalbert/envilder.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.github/skills/dotnet-testing .gemini/skills/dotnet-testing && 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 "dotnet-testing" agent skill from https://github.com/macalbert/envilder/tree/main/.github/skills/dotnet-testing into .gemini/skills/dotnet-testing/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "dotnet-testing", 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 macalbert/envilder dotnet-testingInstalls 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 macalbert/envilder --skill dotnet-testing -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/macalbert/envilder.git skills-src && mkdir -p .github/skills && cp -r skills-src/.github/skills/dotnet-testing .github/skills/dotnet-testing && 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 "dotnet-testing" agent skill from https://github.com/macalbert/envilder/tree/main/.github/skills/dotnet-testing into .github/skills/dotnet-testing/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "dotnet-testing", 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 macalbert/envilder --skill dotnet-testing -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install macalbert/envilder dotnet-testing --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/macalbert/envilder.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.github/skills/dotnet-testing .opencode/skills/dotnet-testing && 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 "dotnet-testing" agent skill from https://github.com/macalbert/envilder/tree/main/.github/skills/dotnet-testing into .opencode/skills/dotnet-testing/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "dotnet-testing", 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.
dotnet-testingMandatory testing conventions for .NET (xUnit, AwesomeAssertions).
Dotnet Testing is an agent skill from macalbert/envilder. Mandatory testing conventions for .NET (xUnit, AwesomeAssertions). Use for unit, integration, or acceptance tests with xUnit, Testcontainers, or Playwright.
Its SKILL.md is about 1.6k 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 Unit testing, Integration testing and End-to-end testing. It works with .NET and Playwright. The repository describes itself as: One secret mapping for local dev, CI/CD, and runtime. Envilder resolves cloud secrets from your own vaults without SaaS middlemen, duplicated config, or .env drift. The licence is MIT.
3 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit b6a0327. 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.
Dotnet Testing loads about 1.6k tokens when it runs. Until then it costs about 43 tokens; SKILL.md has 460 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 macalbert/envilder at commit b6a0327, republished under its MIT licence (© macalbert). 460 words, ~1,570 tokens.
.claude/skills/dotnet-testing/SKILL.md (or your agent's skills folder).This skill defines the MANDATORY testing conventions for .NET projects. These are rules, not guidelines.
// Arrange, // Act, // Assert comments are allowed in testsShould_X_When_Y already documents the intent| Category | Library | Purpose |
|---|---|---|
| Framework | xUnit | Test framework |
| Assertions | AwesomeAssertions | Fluent assertion syntax |
| Snapshots | Verify.Xunit | Snapshot / approval testing |
| Mocking | NSubstitute | Spies, stubs, and mocks |
| Mocking (HTTP) | WireMock.Net | HTTP service mocking |
| Test data (fake) | Bogus | Realistic fake data (Mother pattern) |
| Test data (dummy) | AutoFixture | Automatic dummy object generation |
| Containers | Testcontainers | Docker containers in tests |
ALL tests MUST follow the AAA pattern, separated by inline comments.
// Arrange, // Act, // Assert) appears AT MOST ONCE
per test: if you need two actions or two asserts, write two tests.Should() in Arrange or Act.
If you need a precondition check, extract it to a separate test or use a
guard clause that throws: not an assertion.if, switch, or conditional logic inside Arrange, Act, or Asserttry/catch/finally inside tests: use IAsyncLifetime or
IDisposable for teardown// Act & Assert combined blocks: Act and Assert are ALWAYS separateact.Should().ThrowAsync<T>() (AwesomeAssertions)[Fact(Timeout = CancellationTokenForTest.ShortTimeout)]
public async Task Should_CreateGroup_When_RequestIsValid()
{
// Arrange
var request = new CreateGroupRequest { Name = "Test Group" };
var command = new CreateGroupCommand(request);
// Act
var actual = await _sut.Handle(command, CancellationToken.None);
// Assert
actual.Should().NotBeNull();
actual.GroupId.Should().NotBeEmpty();
_repository.Received(1).AddGroup(Arg.Any<Group>());
}Should_{ExpectedBehavior}_When_{Condition}Should_Work, TestHandler)When clause[Fact] or [Theory], not description strings| Purpose | Name |
|---|---|
| Subject under test | _sut (field) or sut (local) |
| Expected value | expected |
| Actual result | actual |
public class CreateGroupCommandHandlerTests
{
private readonly Fixture _fixture;
private readonly IEnvilderRepository _repository;
private readonly CreateGroupCommandHandler _sut;
public CreateGroupCommandHandlerTests()
{
_fixture = new();
_repository = Substitute.For<IEnvilderRepository>();
_sut = new(_repository);
}
}Act and Assert MUST be separate.
[Fact(Timeout = CancellationTokenForTest.ShortTimeout)]
public async Task Should_ThrowNotFound_When_GroupDoesNotExist()
{
// Arrange
_repository.GetByIdAsync(Arg.Any<Guid>(), Arg.Any<CancellationToken>())
.Returns((Group?)null);
// Act
var act = () => _sut.Handle(query, CancellationToken.None);
// Assert
await act.Should().ThrowAsync<NotFoundException>();
}// Act & Assert ← NEVER
await Assert.ThrowsAsync<NotFoundException>(
() => _sut.Handle(query, CancellationToken.None));Never use try/finally in tests. Use framework mechanisms:
| Scenario | Mechanism |
|---|---|
| Async setup/teardown | IAsyncLifetime (InitializeAsync / DisposeAsync) |
| Sync cleanup | IDisposable (Dispose) |
| Shared fixture | IAsyncLifetime on collection fixture |
public class MyTests : IAsyncLifetime
{
private (string Name, string? Value)[] _originalEnvValues = [];
public Task InitializeAsync()
{
_originalEnvValues = EnvVarNames
.Select(v => (Name: v, Value: Environment.GetEnvironmentVariable(v)))
.ToArray();
return Task.CompletedTask;
}
public Task DisposeAsync()
{
foreach (var (name, value) in _originalEnvValues)
{
Environment.SetEnvironmentVariable(name, value);
}
return Task.CompletedTask;
}
}| Context | Command |
|---|---|
| Unit tests | dotnet test tests/sdks/dotnet/ --filter "Category!=Acceptance" |
| Acceptance (Docker) | dotnet test tests/sdks/dotnet/ |
| Format check | dotnet format src/sdks/dotnet/Envilder.sln --verify-no-changes |
Should_<Expected>_When_<Condition>_sut/actual/expected used consistently.Received()try/catch/finally or control flow in test bodiesdotnet testdotnet format --verify-no-changes© macalbert, MIT. 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/dotnet-testing of macalbert/envilder.
Open the folder on GitHubat commit b6a0327
Dotnet Testing 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 |
|---|---|---|---|---|---|---|
| Dotnet Testing this skillmacalbert/envilder | 138 | — | ~1.6k | Automated safety check: Pass | MIT | |
| Dotnet Testingnovotnyllc/dotnet-artisan | 233 | — | ~972 | Automated safety check: Pass | MIT | |
| Supercheck Testing QAsupercheck-io/supercheck | 215 | — | ~942 | Automated safety check: Pass | AGPL-3.0 | |
| Testing Guidemobazha/mobazha-unified | 165 | — | ~1.7k | Automated safety check: Pass | MPL-2.0 | |
| Angular TestingKilo-Org/kilo-marketplace | 189 | — | ~2.9k | Automated safety check: Pass | MIT | |
| E2E Testinglangflow-ai/langflow | 156k | — | ~3.3k | Automated safety check: Pass | MIT |
novotnyllc/dotnet-artisan
Defines .NET test strategy and implementation patterns across xUnit v3 (Facts, Theories, fixtures, IAsyncLifetime), integration testing (WebApplicationFactory, Testcontainers), Aspire testing…
supercheck-io/supercheck
Test or validate Supercheck changes using package checks, Jest, Playwright UI/API E2E, recorder browser tests, contract tests, AI SRE acceptance, release evidence, and commit/merge readiness gates.
mobazha/mobazha-unified
Guide for writing unit tests (Vitest), integration tests, and E2E tests (Playwright) following Mobazha project conventions.
Kilo-Org/kilo-marketplace
Write unit and integration tests for Angular v20+ applications using Vitest or Jasmine with TestBed and modern testing patterns.
langflow-ai/langflow
Write and review Playwright E2E tests for Langflow. An agent skill from langflow-ai/langflow.
DevBetterCom/DevBetterWeb
Write integration tests using .NET Aspire's testing facilities with xUnit.
macalbert/envilder
Five independent analysis perspectives for code review: correctness, architecture, security, conventions, and complexity.
macalbert/envilder
Index of Architecture Decision Records (ADRs) for cross-cutting technical decisions.
macalbert/envilder
Git commit messages, PR workflow, and branching strategy using Conventional Commits and Semantic Versioning.
macalbert/envilder
Mandatory testing conventions including the narrow diagnostic exception for testing test-only code, AAA pattern, test naming, and assertions across all stacks (.NET, TypeScript, Python).
macalbert/envilder
Workflow for maintaining changelogs, READMEs, and documentation files.
macalbert/envilder
Audit and synchronize documentation across website, READMEs, and docs/.
Works with
Categories
Mandatory testing conventions for .NET (xUnit, AwesomeAssertions). Dotnet Testing is an agent skill from macalbert/envilder.NET (xUnit, AwesomeAssertions).
Dotnet Testing fits situations like: acceptance tests with xUnit; tasks that involve Unit testing; tasks that involve Integration testing.
Run `npx skills add macalbert/envilder --skill dotnet-testing -a claude-code`. Or copy the skill folder (.github/skills/dotnet-testing in macalbert/envilder) into .claude/skills/dotnet-testing in your project. Claude Code loads it when a task matches its description.
Run `npx skills add macalbert/envilder --skill dotnet-testing -a codex`. Or copy the skill folder (.github/skills/dotnet-testing in macalbert/envilder) into .agents/skills/dotnet-testing 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 macalbert/envilder --skill dotnet-testing -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/dotnet-testing, .gemini/skills/dotnet-testing, .github/skills/dotnet-testing and .opencode/skills/dotnet-testing in your project.
Going by SKILL.md and its folder, Dotnet Testing needs the command-line tools its instructions call (dotnet). Our summary lists: Docker.
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.
Dotnet Testing is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 1.6k tokens (SKILL.md is roughly 6.3k 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 Dotnet Testing: Dotnet Testing (novotnyllc/dotnet-artisan, 233 stars), Supercheck Testing QA (supercheck-io/supercheck, 215 stars), Testing Guide (mobazha/mobazha-unified, 165 stars) and Angular Testing (Kilo-Org/kilo-marketplace, 189 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
macalbert (a GitHub user) maintains it in macalbert/envilder, which has 138 GitHub stars. The repository holds 30 skills in this directory. The repository was last updated on October 5, 2026.
Source: macalbert/envilder on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.