coldbox-testing-model

Official

Isolated ColdBox model tests with ready mocks.

AuthorColdBox
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Unit testing ColdBox model components in isolation without starting the full ColdBox virtual app, using a pre-wired model instance and MockBox helpers.

Core Features & Use Cases

  • Pre-wired mocks for common collaborators (mockLogger, mockLogBox, mockCacheBox, mockWireBox).
  • Access to a ready-to-use model instance via variables.model, with support for test setup via beforeAll() and model.init().
  • Mock collaborators and dependencies with prepareMock() and createMock(), enabling focused, deterministic tests.

Quick Start

Extend a test class from coldbox.system.testing.BaseModelTest, set model to your CFC, initialize mocks in beforeAll(), then implement tests in run().

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: coldbox-testing-model
Download link: https://github.com/ColdBox/skills/archive/main.zip#coldbox-testing-model

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.