Aspire Integration Testing
DevBetterCom/DevBetterWeb
Write integration tests using .NET Aspire's testing facilities with xUnit.
Writes and runs OrchardCore tests — xUnit unit tests, SiteContext-based integration tests, Moq mocking, and Playwright functional tests.
$ npx skills add OrchardCMS/OrchardCore --skill orchardcore-unit-test -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install OrchardCMS/OrchardCore orchardcore-unit-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/OrchardCMS/OrchardCore.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/orchardcore-unit-test .claude/skills/orchardcore-unit-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 "orchardcore-unit-test" agent skill from https://github.com/OrchardCMS/OrchardCore/tree/main/.agents/skills/orchardcore-unit-test into .claude/skills/orchardcore-unit-test/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "orchardcore-unit-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/OrchardCMS/OrchardCore/tree/main/.agents/skills/orchardcore-unit-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 OrchardCMS/OrchardCore --skill orchardcore-unit-test -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install OrchardCMS/OrchardCore orchardcore-unit-test --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/OrchardCMS/OrchardCore.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.agents/skills/orchardcore-unit-test .agents/skills/orchardcore-unit-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 "orchardcore-unit-test" agent skill from https://github.com/OrchardCMS/OrchardCore/tree/main/.agents/skills/orchardcore-unit-test into .agents/skills/orchardcore-unit-test/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "orchardcore-unit-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 OrchardCMS/OrchardCore --skill orchardcore-unit-test -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install OrchardCMS/OrchardCore orchardcore-unit-test --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/OrchardCMS/OrchardCore.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.agents/skills/orchardcore-unit-test .cursor/skills/orchardcore-unit-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 "orchardcore-unit-test" agent skill from https://github.com/OrchardCMS/OrchardCore/tree/main/.agents/skills/orchardcore-unit-test into .cursor/skills/orchardcore-unit-test/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "orchardcore-unit-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/OrchardCMS/OrchardCore.git --path .agents/skills/orchardcore-unit-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 OrchardCMS/OrchardCore --skill orchardcore-unit-test -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install OrchardCMS/OrchardCore orchardcore-unit-test --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/OrchardCMS/OrchardCore.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.agents/skills/orchardcore-unit-test .gemini/skills/orchardcore-unit-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 "orchardcore-unit-test" agent skill from https://github.com/OrchardCMS/OrchardCore/tree/main/.agents/skills/orchardcore-unit-test into .gemini/skills/orchardcore-unit-test/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "orchardcore-unit-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 OrchardCMS/OrchardCore orchardcore-unit-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 OrchardCMS/OrchardCore --skill orchardcore-unit-test -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/OrchardCMS/OrchardCore.git skills-src && mkdir -p .github/skills && cp -r skills-src/.agents/skills/orchardcore-unit-test .github/skills/orchardcore-unit-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 "orchardcore-unit-test" agent skill from https://github.com/OrchardCMS/OrchardCore/tree/main/.agents/skills/orchardcore-unit-test into .github/skills/orchardcore-unit-test/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "orchardcore-unit-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 OrchardCMS/OrchardCore --skill orchardcore-unit-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 OrchardCMS/OrchardCore orchardcore-unit-test --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/OrchardCMS/OrchardCore.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.agents/skills/orchardcore-unit-test .opencode/skills/orchardcore-unit-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 "orchardcore-unit-test" agent skill from https://github.com/OrchardCMS/OrchardCore/tree/main/.agents/skills/orchardcore-unit-test into .opencode/skills/orchardcore-unit-test/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "orchardcore-unit-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.
orchardcore-unit-testWrites and runs OrchardCore tests — xUnit unit tests, SiteContext-based integration tests, Moq mocking, and Playwright functional tests.
Orchardcore Unit Test is an agent skill from OrchardCMS/OrchardCore. Writes and runs OrchardCore tests — xUnit unit tests, SiteContext-based integration tests, Moq mocking, and Playwright functional tests. Use when the user needs to add a test, set up a test harness/tenant for tests, mock OrchardCore services, or run the test suite.
Its SKILL.md is about 1.6k tokens, which your agent loads only when the skill is triggered. The skill folder holds 2 other files, including reference files (for example `references/testing.md`).
It sits in Testing & QA, covering Unit testing and Integration testing. It works with Playwright. The repository describes itself as: Orchard Core is an open-source modular and multi-tenant application framework built with ASP.NET Core, and a content management system (CMS) built on top of that framework. The licence is BSD-3-Clause.
2 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit d6bb7b4. 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:
dotnetyarnFrom the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md. Its commands use yarn, which can reach the network depending on how they are called.
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.
Orchardcore Unit Test loads about 1.6k tokens when it runs, and up to ~2.8k if it reads all its reference files. Until then it costs about 72 tokens; SKILL.md has 408 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 OrchardCMS/OrchardCore at commit d6bb7b4, republished under its BSD-3-Clause licence (© OrchardCMS). 408 words, ~1,580 tokens.
.claude/skills/orchardcore-unit-test/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.This skill guides you through writing and running OrchardCore tests following project conventions.
OrchardCore uses xUnit v3 (Microsoft Testing Platform — test projects are Exe). Tests live under test/:
| Project | Kind |
|---|---|
OrchardCore.Tests | unit + in-process integration (main) |
OrchardCore.Abstractions.Tests | pure unit tests for core abstractions |
OrchardCore.Tests.Integration | external-service integration (S3, etc.) |
OrchardCore.Tests.Functional | Playwright browser automation |
OrchardCore.Benchmarks | BenchmarkDotNet (not xUnit) |
| Testing… | Type | Harness |
|---|---|---|
| Pure logic, a single class | unit | plain xUnit + Moq |
| A driver/service needing DI | unit | build a small ServiceCollection |
| Content APIs, recipes, tenant behavior | integration | SiteContext |
| Admin/front-end through a browser | functional | OrchardTestFixture + Playwright |
Naming: {Subject}Tests; methods {Action}_{Condition}_{ExpectedResult}, for example Write_WithinLimit_Succeeds.
namespace OrchardCore.Json.Nodes.Test;
public class Base64Tests
{
[Theory]
[InlineData("YTw+OmE/", "a<>:a?")]
[InlineData("SGVsbA==", "Hell")]
public void DecodeToString_ValidBase64_ReturnsDecodedString(string source, string expected)
{
Assert.Equal(expected, Base64.FromUTF8Base64String(source));
}
}Use [Fact] for single cases, [Theory] + [InlineData]/[MemberData] for parameterized. Assertions are xUnit Assert.* (no Shouldly in this repo).
using Moq;
// Quick stub:
var clock = Mock.Of<IClock>(c => c.UtcNow == DateTime.UtcNow);
// With setup/verify:
var shellHost = new Mock<IShellHost>();
shellHost.Setup(h => h.GetScopeAsync(It.IsAny<string>())).ReturnsAsync(scope);
// ...
shellHost.Verify(h => h.GetScopeAsync("Default"), Times.Once);Build a service provider when the unit needs DI:
var httpContext = new DefaultHttpContext
{
RequestServices = new ServiceCollection()
.AddSingleton(myService.Object)
.BuildServiceProvider(),
};SiteContext spins up a real tenant (SQLite by default) from a recipe and gives you an HttpClient + tenant scope.
public class BlogPostApiControllerTests
{
[Fact]
public async Task CreateDraft_ExistingContentItem_CreatesDraft()
{
using var context = new SiteContext();
await context.InitializeAsync();
var response = await context.Client.PostAsJsonAsync("api/content?draft=true", contentItem);
var draft = await response.Content.ReadAsAsync<ContentItem>();
Assert.True(draft.Latest);
Assert.False(draft.Published);
}
}Resolve tenant services inside a scope:
await context.UsingTenantScopeAsync(async scope =>
{
var session = scope.ServiceProvider.GetRequiredService<ISession>();
var posts = await session.Query<ContentItem, ContentItemIndex>(x => x.ContentType == "BlogPost").ListAsync();
Assert.Equal(2, posts.Count());
});Customize the recipe by subclassing or WithRecipe:
public class AgencyContext : SiteContext
{
public AgencyContext() => this.WithRecipe("Agency");
}Defaults: RecipeName = "Blog", DatabaseProvider = "Sqlite", a random tenant name + table prefix per test.
OrchardTestFixture starts a CMS server and a headless Chromium browser.
var page = await fixture.CreatePageAsync();
await page.GotoAsync("/");
await Expect(page.Locator("h1")).ToBeVisibleAsync();Set PLAYWRIGHT_TRACING to capture screenshots/snapshots/sources into traces/.
# All tests in a project (from repo root)
dotnet test test/OrchardCore.Tests/OrchardCore.Tests.csproj
# Filter by name (xUnit / MTP)
dotnet test test/OrchardCore.Tests/OrchardCore.Tests.csproj --filter "FullyQualifiedName~BlogPost"CI requires all tests green. If you change CSS/JS, run yarn build first (asset tests).
| Attribute | Use |
|---|---|
[Fact] | one test case |
[Theory] + [InlineData] | inline parameter sets |
[Theory] + [MemberData(nameof(X))] | computed parameter sets |
Assert.Equal, Assert.True/False, Assert.Null/NotNull, Assert.Contains, Assert.Throws<T>, await Assert.ThrowsAsync<T>(...).
| Member | Purpose |
|---|---|
InitializeAsync() | create + set up the tenant |
Client | HttpClient bound to the tenant |
UsingTenantScopeAsync(fn) | run code in the tenant's DI scope |
GraphQLClient | GraphQL API client |
RecipeName / DatabaseProvider | override before InitializeAsync |
| Need | Code |
|---|---|
| Stub a property | Mock.Of<I>(x => x.P == v) |
| Setup a method | m.Setup(x => x.F(It.IsAny<T>())).ReturnsAsync(r) |
| Verify a call | m.Verify(x => x.F(arg), Times.Once) |
| Pass the object | m.Object |
Exe (MTP) — keep that OutputType when adding one; don't switch to library.SiteContext is IDisposable — always using var context = ....UsingTenantScopeAsync; the outer scope isn't the tenant.references/testing.md — SiteContext internals, fixtures, Playwright, project layoutsrc/docs/contributing/contributing-code.md (repo) — test expectationstest/OrchardCore.Tests/ (repo) — real examplesAGENTS.md (repo root) — build commands© OrchardCMS, BSD-3-Clause. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 1 other file (references) in .agents/skills/orchardcore-unit-test of OrchardCMS/OrchardCore.
Open the folder on GitHubat commit d6bb7b4
Orchardcore Unit 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 |
|---|---|---|---|---|---|---|
| Orchardcore Unit Test this skillOrchardCMS/OrchardCore | 8.2k | — | ~1.6k | Automated safety check: Pass | BSD-3-Clause | |
| Aspire Integration TestingDevBetterCom/DevBetterWeb | 157 | 2 repos | ~2.3k | Automated safety check: Pass | None | |
| JS-in-HTML Testingliaohch3/claude-tap | 3.3k | — | ~924 | Automated safety check: Pass | MIT | |
| Dotnet Testingnovotnyllc/dotnet-artisan | 233 | — | ~972 | Automated safety check: Pass | MIT | |
| Dotnet Testingmacalbert/envilder | 138 | — | ~1.6k | Automated safety check: Pass | MIT | |
| Supercheck Testing QAsupercheck-io/supercheck | 215 | — | ~942 | Automated safety check: Pass | AGPL-3.0 |
DevBetterCom/DevBetterWeb
Write integration tests using .NET Aspire's testing facilities with xUnit.
liaohch3/claude-tap
Tests JavaScript embedded in an HTML file in two layers: pytest checks of the logic ported to Python, and Playwright runs in a real browser for the DOM.
novotnyllc/dotnet-artisan
Defines .NET test strategy and implementation patterns across xUnit v3 (Facts, Theories, fixtures, IAsyncLifetime), integration testing (WebApplicationFactory, Testcontainers), Aspire testing…
macalbert/envilder
Mandatory testing conventions for .NET (xUnit, AwesomeAssertions).
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.
OrchardCMS/OrchardCore
Creates and updates OrchardCore admin edit views using the ocat- CSS class conventions.
OrchardCMS/OrchardCore
Builds, watches, and manages frontend assets in OrchardCore.
OrchardCMS/OrchardCore
Creates and updates OrchardCore data migrations (DataMigration classes with CreateAsync/UpdateFromX).
OrchardCMS/OrchardCore
Controls how OrchardCore renders content — placement.json rules, display drivers, shapes, zones, alternates, and editor groupings (tabs/cards/columns).
OrchardCMS/OrchardCore
Authors OrchardCore documentation — MkDocs Material pages, module README docs, nav entries, admonitions, tabbed content, and redirects.
OrchardCMS/OrchardCore
Localizes OrchardCore apps — UI strings (IStringLocalizer/IViewLocalizer S, T, H), PO files and pluralization, content translation (LocalizationPart, culture picker), and supported-culture…
Works with
Categories
Writes and runs OrchardCore tests — xUnit unit tests, SiteContext-based integration tests, Moq mocking, and Playwright functional tests. Orchardcore Unit Test is an agent skill from OrchardCMS/OrchardCore. Writes and runs OrchardCore tests — xUnit unit tests, SiteContext-based integration tests, Moq mocking, and Playwright functional tests.
Orchardcore Unit Test fits situations like: the user needs to add a test; set up a test harness/tenant for tests; mock OrchardCore services; run the test suite.
Run `npx skills add OrchardCMS/OrchardCore --skill orchardcore-unit-test -a claude-code`. Or copy the skill folder (.agents/skills/orchardcore-unit-test in OrchardCMS/OrchardCore) into .claude/skills/orchardcore-unit-test in your project. Claude Code loads it when a task matches its description.
Run `npx skills add OrchardCMS/OrchardCore --skill orchardcore-unit-test -a codex`. Or copy the skill folder (.agents/skills/orchardcore-unit-test in OrchardCMS/OrchardCore) into .agents/skills/orchardcore-unit-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 OrchardCMS/OrchardCore --skill orchardcore-unit-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/orchardcore-unit-test, .gemini/skills/orchardcore-unit-test, .github/skills/orchardcore-unit-test and .opencode/skills/orchardcore-unit-test in your project.
Going by SKILL.md and its folder, Orchardcore Unit Test needs the command-line tools its instructions call (dotnet and yarn).
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.
Orchardcore Unit Test is published under the BSD-3-Clause 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. Its references folder adds about 1.2k tokens, read only when the agent opens those files.
Skills that share tags, products or a category with Orchardcore Unit Test: Aspire Integration Testing (DevBetterCom/DevBetterWeb, 157 stars), JS-in-HTML Testing (liaohch3/claude-tap, 3.3k stars), Dotnet Testing (novotnyllc/dotnet-artisan, 233 stars) and Dotnet Testing (macalbert/envilder, 138 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
OrchardCMS (a GitHub organization) maintains it in OrchardCMS/OrchardCore, which has 8,195 GitHub stars. The repository holds 16 skills in this directory. The repository was last updated on October 8, 2026.
Source: OrchardCMS/OrchardCore on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.