Testing and Quality
Write and run D365FO tests — SysTestCase unit tests, the ATL acceptance library, and the offline gates (`validate xpp`, `validate references`, `lint`) that catch defects before a build. Invoke when the user asks how to test X++, add a unit test, assert on behaviour, or check code quality without a VM.
Install
npx skills add dynamics365ninja/d365fo-cli --skill testing-and-qualitygit clone --depth 1 https://github.com/dynamics365ninja/d365fo-cli.git /tmp/d365fo-cli
mkdir -p ~/.claude/skills
cp -r /tmp/d365fo-cli/skills/anthropic/testing-and-quality ~/.claude/skills/testing-and-qualityPersonal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.
From the SKILL.md
> ⛔ **NEVER write X++ AOT XML files directly** via PowerShell, terminal file commands (`Set-Content`, `Out-File`, `New-Item`), editor write tools, or any raw text approach. The XML schema is proprietary. **ALWAYS use `d365fo generate …` commands** to produce correct AOT XML. If `d365fo` is unavailable in PATH, stop and ask the user to install it. # Testing and quality gates > Two layers, and they cost very different amounts. The offline gates run in > milliseconds without a VM and catch the majority of generated-code defects; the > SysTest layer needs a build and a database. Run the cheap ones first, always. ## 1. The offline gates — before every write ```sh d365fo validate references --file MyClass.xpp --output json # exit 2 = hallucinated symbols d365fo validate xpp --file MyClass.xpp --output json # exit 2 = BP errors d365fo lint --output sarif > lint.sarif # whole-model sweep ``` `validate references` proves every type, field, method (including arity), enum, label and intrinsic target against the index — it catches invented names **before** the compiler does. `validate xpp` runs the BP rule canon offline. Fix everything they report in the same turn, re-run, and only then write. ## 2. SysTestCase — unit tests - The test class **extends `SysTestCase`** and lives in the same model as the code under test, or a dedicated test model. - Test methods are `public void`, take **no parameters**, and are discovered two
Details
- Skill name
testing-and-quality- Repository
- dynamics365ninja/d365fo-cli
- Path
skills/anthropic/testing-and-quality/SKILL.md- Repo updated
- 16 November 2026
FAQ
What does the Testing and Quality skill do?
Write and run D365FO tests — SysTestCase unit tests, the ATL acceptance library, and the offline gates (`validate xpp`, `validate references`, `lint`) that catch defects before a build. Invoke when the user asks how to test X++, add a unit test, assert on behaviour, or check code quality without a VM.
How do I install the Testing and Quality skill?
skills CLI (Claude Code, Cursor, Codex and more): npx skills add dynamics365ninja/d365fo-cli --skill testing-and-quality. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.
Is Testing and Quality popular?
It lives in dynamics365ninja/d365fo-cli, which has 49 GitHub stars and 26 forks.
Related skills
Analytics and Er
49dynamics365ninja/d365fo-cli
Model the D365FO analytical and document-generation surfaces — aggregate measurements and the entity store, tiles/cues and KPIs, and Electronic Reporting (ER). Invoke when the user asks about a workspace tile, a KPI, an aggregate measurement, the entity store, Power BI content, or running/binding an ER format.
Barcode Scanning
49dynamics365ninja/d365fo-cli
Barcodes and scanner input in D365FO — printing vs scanning are unrelated code paths, GS1-128 application identifiers, item-barcode resolution, and where the platform parses a scan for you. Invoke when the user mentions barcodes, GS1, GTIN, SSCC, scanning, scanners, item barcodes, or barcode setup.
Build Error Triage
49dynamics365ninja/d365fo-cli
Turn a D365FO compiler, best-practice, or runtime error into the specific fix it calls for. Invoke when the user pastes a build log, an xppc message, a BP violation, or an infolog stack trace and asks what it means or how to fix it.
Condition Based Waiting
43obra/clank
Replace arbitrary timeouts with condition polling for reliable async tests
Uw Unity Test Runner
47devdavv/unity-ai-workflow
Generates EditMode and PlayMode tests using NUnit, mapped from GDD Gherkin scenarios. Use when writing tests, validating features, ensuring code quality, or verifying behavior after changes. Triggers on requests like "write tests for this", "test the health system", "add unit tests", "verify this works", "add PlayMode tests", "test this feature", "write integration tests", "make sure this doesn't break", "add test coverage", "TDD this feature", or any task involving test creation, test-driven development, or quality assurance. Maps Given/When/Then scenarios directly to test methods using NUnit
Creating Skills
43obra/clank
TDD for process documentation - test with subagents before writing, iterate until bulletproof
Browse the most popular Claude skills, all testing & qa skills, or write your own with the skills generator.