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.

49 stars 26 forksTesting & QA

Install

skills CLI (Claude Code, Cursor, Codex and more)
npx skills add dynamics365ninja/d365fo-cli --skill testing-and-quality
Manual install
git 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-quality

Personal 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
Read the full skill on GitHub

Details

Skill name
testing-and-quality
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

49

dynamics365ninja/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.

Data & Analytics26

Barcode Scanning

49

dynamics365ninja/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.

AI, LLMs & Agents26

Build Error Triage

49

dynamics365ninja/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.

AI, LLMs & Agents26

Condition Based Waiting

43

obra/clank

Replace arbitrary timeouts with condition polling for reliable async tests

Testing & QA26

Uw Unity Test Runner

47

devdavv/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

Testing & QA

Creating Skills

43

obra/clank

TDD for process documentation - test with subagents before writing, iterate until bulletproof

Testing & QA26

Browse the most popular Claude skills, all testing & qa skills, or write your own with the skills generator.