umbraco-test-builders

Generate Umbraco backoffice models with fluent builder classes for testing.

4|Updated Mar 6, 2026
One-click install
npx skills add https://github.com/albanist/umbraco_CLI --skill umbraco-test-builders-albanist
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: umbraco-test-builders
Source: https://github.com/albanist/umbraco_CLI/tree/main/skills/testing/umbraco-test-builders
Command: npx skills add https://github.com/albanist/umbraco_CLI --skill umbraco-test-builders-albanist

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

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

Core Features & Use Cases

  • Fluent Builders: Use chainable methods to construct Umbraco models like Document Types, Content, and Media with sensible defaults.
  • Test Data Generation: Quickly generate realistic data for unit and integration tests.
  • Use Case: When writing an integration test for content creation, use ContentBuilder to define the content type, properties, and variants, ensuring your test setup is concise and readable.

Quick Start

Use the umbraco-test-builders skill to create a new 'Article' document type with 'Title' and 'Body' properties.

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 test data for automated testing?

You can generate Umbraco backoffice test data by using fluent builder classes to construct Document Types, Content, Media, and Data Types with chainable configurations and sensible default values, reducing boilerplate code in your automated testing scenarios.

How do I create Umbraco Document Types and Content with default values in unit tests?

You create Umbraco Document Types and Content by using chainable builder methods like ContentBuilder to define content types, properties, and variants, ensuring your unit test setup remains concise and readable with sensible defaults.

Can I use fluent builders to set up Umbraco Media and Data Types for integration tests?

Yes, you can use fluent builders to set up Umbraco Media and Data Types for integration tests, providing comprehensive test coverage across various Umbraco entities and property types through chainable configuration methods.

What is the best way to reduce boilerplate code when configuring Umbraco test models?

The best way to reduce boilerplate code when configuring Umbraco test models is using fluent builder classes that provide realistic default values and chainable configurations, streamlining the creation of complex backoffice models for testing.

Does Umbraco test data generation support property types and variants for content creation?

Yes, Umbraco test data generation supports various property types and variants for content creation, allowing you to define specific content type properties and variants through fluent builders for comprehensive test coverage.

Why should I use fluent builders for Umbraco test data instead of manual model creation?

You should use fluent builders for Umbraco test data because they reduce boilerplate code, improve test maintainability, and provide chainable methods to construct complex backoffice models with sensible defaults, enhancing overall testing efficiency.