testbox-expectations
OfficialFluent assertions and custom matchers for TestBox.
AuthorColdBox
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Enables writing fluent assertions in TestBox using expect() and expectAll() across collections to improve test readability and maintainability.
Core Features & Use Cases
- Fluent DSL for TestBox assertions with expect() and expectAll()
- Chain multiple matchers on a single actual value
- Use notToBe, notToBeEmpty, and related negations for negative tests
- Create and register custom matchers with addMatchers()
- Extensive set of built-in matchers (toBe, toBeTrue, toHaveKey, toThrow, toMatch, toBeBetween, toBeCloseTo, toInclude, etc.)
Quick Start
Start by using expect( actual ).toBeXxx() in tests and register custom matchers with addMatchers().
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: testbox-expectations Download link: https://github.com/ColdBox/skills/archive/main.zip#testbox-expectations 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.