Umbraco Unit Testing

🌐Community
by umbraco · vlatest · Repository

Automates Umbraco unit tests, ensuring code quality and preventing regressions within your CMS implementation.

Install on your platform

We auto-selected Claude Code based on this skill’s supported platforms.

1

Run in terminal (recommended)

terminal
claude mcp add umbraco-unit-testing npx -- -y @trustedskills/umbraco-unit-testing
2

Or manually add to ~/.claude/settings.json

~/.claude/settings.json
{
  "mcpServers": {
    "umbraco-unit-testing": {
      "command": "npx",
      "args": [
        "-y",
        "@trustedskills/umbraco-unit-testing"
      ]
    }
  }
}

Requires Claude Code (claude CLI). Run claude --version to verify your install.

About This Skill

What it does

This skill enables AI agents to execute unit tests specifically within the Umbraco CMS ecosystem. It allows for automated verification of code changes, ensuring that custom modules and integrations function correctly before deployment.

When to use it

  • Validate new or modified Umbraco controllers, services, and models during development cycles.
  • Automate regression testing when updating dependencies or refactoring existing backoffice logic.
  • Ensure data integrity by running test suites against specific Umbraco configurations.
  • Integrate into CI/CD pipelines to gate deployments based on test pass/fail results.

Key capabilities

  • Executes unit tests tailored for the Umbraco framework architecture.
  • Supports testing of custom packages and extensions within the CMS environment.
  • Provides immediate feedback on code stability and functionality.

Example prompts

  • "Run the full unit test suite for my new content service module."
  • "Execute specific tests related to user authentication logic in the backoffice."
  • "Validate that my custom data type handler works correctly with existing Umbraco models."

Tips & gotchas

Ensure your development environment has all necessary Umbraco dependencies installed before running tests. Unit testing requires a clean, isolated environment; avoid running these tests directly on production instances to prevent unintended side effects or data corruption.

Tags

🛡️

TrustedSkills Verification

Unlike other registries that point to live repositories, TrustedSkills pins every skill to a verified commit hash. This protects you from malicious updates — what you install today is exactly what was reviewed and verified.

Security Audits

Gen Agent Trust HubPass
SocketPass
SnykPass

Details

Version
vlatest
License
Author
umbraco
Installs
38

🌐 Community

Passed automated security scans.