coldbox-testing-fixtures

Automate test fixture and factory setup for ColdBox/TestBox projects.

1|Updated Apr 10, 2026
One-click install
npx skills add https://github.com/ColdBox/skills --skill coldbox-testing-fixtures
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: coldbox-testing-fixtures
Source: https://github.com/ColdBox/skills/tree/main/testbox/testing-fixtures
Command: npx skills add https://github.com/ColdBox/skills --skill coldbox-testing-fixtures

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Managing and maintaining test fixtures, factories, and mock data across ColdBox/TestBox projects to ensure consistent, isolated tests.

Core Features & Use Cases

  • Centralized fixture definitions and reusable factory patterns for test data
  • Overridable data builders with deterministic seeding for repeatable tests
  • Integration with cbMockData for realistic mock data generation

Quick Start

Create a shared fixtures file and a base factory, then reuse them across tests.

Frequently Asked Questions about coldbox-testing-fixtures

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

FAQPage Schema
How do I manage test fixtures in ColdBox to keep unit tests isolated and consistent?

You manage ColdBox test fixtures by creating centralized fixture definitions and reusable factory patterns, which ensures consistent and isolated tests across your project.

What's the best way to generate realistic mock data for TestBox integration tests?

The best way to generate realistic mock data for TestBox is by integrating with cbMockData, which provides overridable data builders for deterministic, repeatable test data generation.

How do I set up overridable data builders for deterministic TestBox testing?

You set up deterministic TestBox testing by creating a shared fixtures file and a base factory, allowing you to reuse and override data builders across multiple unit and integration tests.

Can I reuse shared test data factories across different ColdBox unit and integration tests?

Yes, you can reuse shared test data factories across ColdBox tests by defining a base factory with overridable patterns and deterministic seeding, ensuring repeatable results in both unit and integration tests.

Do I need a specific directory structure to set up ColdBox test data builders?

You need optional resource directories for scripts, references, and assets to support test data builders, leveraging a frontmatter-defined identity for immediate adoption in your ColdBox projects.