agentleFS
korchard333korchard333/claude-power-platform-community/.claude/skills/testing/SKILL.md

testing

Skill49 starsChanged 8 months agoMITView on GitHub

Power Platform Testing Strategy. Use when: writing unit tests, E2E tests, Vitest/Jest setup, Playwright, Canvas App testing, plugin testing with FakeXrmEasy, Solution Checker, accessibility testing with axe-core, CI/CD test integration.

123 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use oss-pr, pr-automation and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • CES-LtdSkill

    oss-pr

    Use when creating a pull request, after committing changes, or when user invokes /oss-pr. Covers branch management, quality checks, commit, push, and PR creation.

    Also in 3 projects that use this

  • CES-LtdSkill

    pr-automation

    PR Automation Orchestrator: poll open PRs, check CI, run review, fix, and merge eligible PRs. Use when: (1) Invoked by daemon via scripts/pr-automation.sh, (2) User says "/pr-automation".

    Also in 3 projects that use this

  • ffsshhttiikkSkill

    cicd

    Continuous integration and delivery pipelines

    Also in 4 projects that use this

  • ffsshhttiikkSkill

    networking

    Practical application and coding skills for Networking

    Also in 3 projects that use this

  • JohnJBorenSkill

    ci-cd

    CI/CD pipeline design, GitHub Actions, testing automation, and deployment strategies

    Also in 9 projects that use this

  • Cogni-AI-OUSkill

    dotfiles

    Reference for repository dotfiles, including their purposes, standard configurations, and usage guidelines. You MUST load this skill when configuring, troubleshooting, or understanding repository dotfiles.

    Also in 3 projects that use this

  • +2 more from CES-Ltd
  • +1 more from ffsshhttiikk

The file

We split this skill into the rules it gives an agent

4 rules. 0 are common, 4 are distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 105 edited versions we read keep these.

  • 4

    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
  1. Distinctive:

    No automated tests at any level (relies entirely on manual QA)

    line 61
  2. Distinctive:

    No post-deployment smoke test (issues discovered by end users)

    line 67
  3. Distinctive:

    Test accounts with System Administrator role (hides permission bugs)

    line 69
  4. Distinctive:

    Not testing as each security role (misses access control issues)

    line 70

“Common” is measured: kept by at least 6 in 10 of the 105 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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Skill: Power Platform Testing Strategy

When to Use

Trigger when designing test plans, automating tests, debugging production issues, or validating deployments for any Power Platform solution — Code Apps, Canvas Apps, Model-Driven Apps, Flows, Plugins, or Portals.


Testing Pyramid for Power Platform

                    └──-------------------+
                    |   E2E / UI Tests    |  <-- Slowest, most brittle
                    |  (Playwright, ERP)  |
                    └──-------------------+
                    |  Integration Tests  |  <-- Validate cross-component
                    |   (Solution Check)  |
                    └──-------------------+
                    |    Unit Tests       |  <-- Fastest, most reliable
                    | (xUnit, Jest, PTS)  |
                    └──-------------------+

Testing by Component Type

ComponentUnit Test ToolIntegration TestE2E Test
Code App (React)Vitest/Jest + RTLPlaywrightPlaywright
Canvas App—Power Apps Test StudioPower Apps Test Studio
Model-Driven App——EasyRepro / Playwright
Plugin (C#)xUnit + FakeXrmEasyPlugin Trace Log—
Power Automate Flow—Flow Checker + manualFlow run history
PCF ControlJestPCF test harnessPlaywright
Custom ConnectorPostman / REST testsConnector test tabFlow integration test
Desktop Flow (RPA)Subflow test suite (Wave 1 2026)Flow run historyScreenshot capture on failure
Power Pages——Playwright / Selenium

⚠️ REQUIRED: Load Sub-Files Before Implementation

SKILL.md is a summary only — it is NOT sufficient for implementation.

The detailed content (complete payloads, XML templates, working examples, edge-case handling) lives in sub-files in the same directory as this SKILL.md. Before writing any code, you MUST use read_file on the sub-files relevant to your task:

  • Code App Testing — Vitest/Jest + React Testing Library, component tests, hook tests, E2E with Playwright
  • Canvas App Testing — Power Apps Test Studio, Flow testing, Monitor tool, EasyRepro for Model-Driven Apps
  • Plugin Testing — xUnit + FakeXrmEasy setup, mocking IOrganizationService, testing plugin execution
  • Accessibility Testing — axe-core + Playwright, manual checklist, Canvas App accessibility checker
  • CI/CD Integration — Solution Checker (static analysis), GitHub Actions, test data management, deployment validation smoke tests

Anti-Patterns

  • No automated tests at any level (relies entirely on manual QA)
  • E2E tests without unit tests (inverted pyramid — slow, brittle, expensive)
  • Testing against production data (data leaks, accidental modifications)
  • Skipping Solution Checker before deployment (catches issues early)
  • Plugin tests without FakeXrmEasy (testing against live org is slow and flaky)
  • Canvas App tests that depend on specific data records (fail when data changes)
  • No post-deployment smoke test (issues discovered by end users)
  • Suppressing Solution Checker findings without justification
  • Test accounts with System Administrator role (hides permission bugs)
  • Not testing as each security role (misses access control issues)

Related Skills

  • code-apps — React component and hook testing patterns
  • plugins — C# plugin testing with FakeXrmEasy
  • security — Security role testing requirements
  • alm — CI/CD pipeline test integration
  • accessibility-ux — WCAG compliance testing

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.