umbraco-test-builders

Generate Umbraco backoffice models and test data with fluent builders.

26|13|Updated Nov 30, 2025
One-click install
npx skills add https://github.com/umbraco/Umbraco-CMS-Backoffice-Skills --skill umbraco-test-builders
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: umbraco-test-builders
Source: https://github.com/umbraco/Umbraco-CMS-Backoffice-Skills/tree/main/plugins/umbraco-testing-skills/skills/umbraco-test-builders
Command: npx skills add https://github.com/umbraco/Umbraco-CMS-Backoffice-Skills --skill umbraco-test-builders

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill simplifies the creation of complex Umbraco backoffice models for testing purposes, reducing boilerplate code and improving test maintainability.

Core Features & Use Cases

  • Fluent Builders: Use chainable methods to construct Umbraco models like Document Types, Content, Media, Users, and more.
  • Sensible Defaults: Builders provide default values, minimizing the need for explicit configuration.
  • Use Case: When writing end-to-end tests for Umbraco, you need to create various content structures. This Skill allows you to quickly generate a Document Type with specific properties and then create content items based on that type, all within your test setup.

Quick Start

Use the umbraco-test-builders skill to create a new Document Type named 'Article' with a 'Title' text property.

Frequently Asked Questions about umbraco-test-builders

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate Umbraco backoffice models for automated testing?

You can generate Umbraco backoffice models for automated testing by using fluent builder classes that provide chainable methods to construct Document Types, Content, Media, Users, and Data Types with sensible default values.

What is the builder pattern for setting up Umbraco test data?

The builder pattern for Umbraco test data involves using declarative, chainable methods to construct complex backoffice models like Content and Document Types, reducing boilerplate code and improving test maintainability.

Can I create Umbraco Block List and Grid configurations in my test setup?

Yes, you can create Umbraco Block List and Grid configurations in your test setup by leveraging the fluent builder classes to declaratively generate these specific backoffice models with default values.

How do I reduce boilerplate code when creating Umbraco content structures for end-to-end tests?

You reduce boilerplate code when creating Umbraco content structures by using fluent builders with sensible defaults, allowing you to quickly generate a Document Type with specific properties and corresponding content items declaratively.

Does the umbraco-test-builders skill provide default values for Document Types and Media?

Yes, the umbraco-test-builders skill provides sensible default values for generated Umbraco backoffice models including Document Types, Media, Users, and Data Types, minimizing the need for explicit configuration in your test data setup.