umbraco-test-builders

Generate Umbraco backoffice test data with fluent builder classes.

Updated Mar 6, 2026
One-click install
npx skills add https://github.com/kraftvaerk/Kraftvaerk.Umbraco.Alchemy --skill umbraco-test-builders-kraftvaerk
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: umbraco-test-builders
Source: https://github.com/kraftvaerk/Kraftvaerk.Umbraco.Alchemy/tree/main/Kraftvaerk.Umbraco.Alchemy.Frontend/.agents/skills/umbraco-test-builders
Command: npx skills add https://github.com/kraftvaerk/Kraftvaerk.Umbraco.Alchemy --skill umbraco-test-builders-kraftvaerk

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill simplifies the creation of complex Umbraco backoffice test data, reducing the boilerplate code and effort required for writing robust tests.

Core Features & Use Cases

  • Fluent Builders: Use chainable methods to construct Umbraco models like Document Types, Content, Media, and Users.
  • Sensible Defaults: Builders provide intelligent defaults, minimizing the need for explicit configuration.
  • Use Case: When writing an end-to-end test for content creation, use the ContentBuilder to quickly generate a realistic content item with multiple variants and properties, ensuring your tests cover realistic scenarios.

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 test data without writing boilerplate code?

Use fluent builder classes to generate Umbraco backoffice test data with sensible defaults and chainable methods. This approach minimizes boilerplate while producing reproducible document types, content, media, and user models for your testing frameworks.

What is a fluent builder for Umbraco document types and content?

A fluent builder for Umbraco models is a class using chainable methods to construct backoffice document types and content. It supplies intelligent defaults, letting you override only the necessary properties to quickly generate realistic JSON models for testing.

Can I create Umbraco content with multiple variants for end-to-end tests?

Yes, the ContentBuilder facilitates creating Umbraco content with multiple variants and properties. It allows you to quickly generate realistic content items, ensuring your end-to-end tests accurately cover complex backoffice scenarios.

Does the test data builder require any external dependencies to run?

No, this test data builder operates with zero external dependencies. It independently provides fluent builder classes for generating Umbraco backoffice test data, including document types, content, media, and user models for your testing framework.

What is the best way to set up an Umbraco document type named 'Article' for testing?

The best way to set up an Umbraco 'Article' document type for testing is by using the fluent test data builders. You can chain methods to create the document type and easily add a 'Title' text property with sensible defaults applied automatically.

Why does writing maintainable Umbraco test data become difficult?

Writing maintainable Umbraco test data becomes difficult due to boilerplate code and complex model configuration. Fluent builders solve this by providing sensible defaults and chainable methods, satisfying the need for reproducible and maintainable test data generation.