coldbox-testing-model
OfficialIsolated ColdBox model tests with ready mocks.
Software Engineering#unit-testing#dependency-injection#testing-utilities#coldbox#mockbox#base-model-test
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 requiredComponents
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.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.