testbox-cbmockdata

Official

Generate realistic mock data for tests.

AuthorColdBox
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Generate realistic, varied fake data for unit and integration tests to avoid manual fixture creation and brittle hand-crafted datasets.

Core Features & Use Cases

  • Fluent type-based generation: map field names to type strings such as fname, lname, email, uuid, autoincrement, oneof, and rnd to produce realistic values.
  • Complex structures and factories: produce arrays of objects, nested objects, arrays of scalar values, and integrate custom supplier closures for computed or conditional fields.
  • Use Case: seed test databases, build reusable factory helpers, and create consistent fixtures across TestBox specs and BDD suites.

Quick Start

Use cbMockData to generate a struct or an array of mock records by mapping field names to type strings or closures and specifying $num or $returnType.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: testbox-cbmockdata
Download link: https://github.com/ColdBox/skills/archive/main.zip#testbox-cbmockdata

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.