TestBox : Behavior Driven Development (BDD)
API DocsSourceSupportBoxLang
v2.x
v2.x
  • Introduction
  • Introduction
    • Introduction
      • What's New With 2.8.0
      • What's New With 2.7.0
      • What's New With 2.6.0
      • What's New With 2.5.0
      • What's New With 2.4.0
      • What's New With 2.3.0
      • What's New With 2.2.0
      • What's New With 2.1.0
      • About This Book
      • Author
    • Overview
      • RefCards
      • IDE Tools
      • System Requirements
    • Installing TestBox
      • What's Included
  • Primers
    • TestBox BDD Primer
      • Ref Card
      • Requirements
      • Bundles: Group Your Tests
      • Suites: Describe Your Tests
        • Dynamic Suites
      • Specs
      • Expectations
      • Suite Groups
        • Given-When-Then Blocks
      • Life-Cycle Methods
      • Specs and Suite Labels
      • Skipping Specs and Suites
      • Spies & Mocking
      • Asynchronous Testing
      • Running Tests
      • Reporters
    • TestBox xUnit Primer
      • RefCard
      • Requirements
      • Bundles: Group Your Tests
      • Test Methods
      • Assertions
      • Setup and Teardown
      • Test and Suite Labels
      • Skipping Tests and Suites
      • Spies and Mocking
      • Asynchronous-Testing
      • Running Tests
      • Reporters
  • In-Depth
    • Testing Styles
    • Test Bundles
      • Optional Inheritance
      • Injected Variables
      • Injected Methods
    • Life-Cycle Methods
      • xUnit
      • BDD
      • Annotations
    • Suites, Tests & Specs (Oh My!)
      • xUnit
      • BDD
    • Assertions
      • Custom Assertions
    • Expectations
      • Matchers
      • Not Operator
      • Expecting Exceptions
      • Custom Matchers
    • Output Utilities
    • Running Tests
      • Run Listeners
      • Global Runner
      • Test Browser
      • Bundle(s) Runner
      • Test Runner
      • Directory Runner
      • SOAP Runner
      • HTTP REST Runner
      • ANT Runner
      • NodeJS Runner
    • Reporters
      • Custom Reporters
    • MXUnit Compatibility
  • Mocking
    • MockBox
      • System Requirements
      • Installing Mockbox
      • What is Mocking?
      • Our Approach and Benefits
      • Creating MockBox
      • Creating a Mock Object
      • Creating a Stub Object
      • Mocking Methods
        • $() Method
        • $property() Method
        • $getProperty() Method
        • $results() Method
        • $args() Method
        • $throws() Method
        • $querySim() Method
      • Verification Methods
        • $count()
        • $times() or $verifyCallCount()
        • $never()
        • $atLeast()
        • $once()
        • $atMost()
        • $callLog()
        • $reset()
        • $debug()
      • Some Examples
      • Conclusion
  • Continuous Integration
    • Introduction
    • Gitlab
    • Travis
    • Jenkins
Powered by GitBook

Social Media

  • YouTube
  • x
  • FaceBook
  • LinkedIn

Downloads

  • CommandBox
  • BoxLang
  • Try BoxLang

Support

  • Professional
  • Community
  • Slack
  • CFCasts

Copyright & Register Trademark by Ortus Solutions, Corp & Ortus Software, LLC

On this page
  • Chained DSL Improvements
  • Null Support
  • Method Mocking Performance
  • Eager Failures
  • Help for the Color Blind
  • Expanding of x exclusion Methods
  • Release Notes
  • Bugs
  • New Features
  • Improvements

Was this helpful?

Edit on Git
Export as PDF
  1. Introduction
  2. Introduction

What's New With 2.6.0

PreviousWhat's New With 2.7.0NextWhat's New With 2.5.0

Last updated 7 years ago

Was this helpful?

TestBox 2.6.0 is a minor release with some great new functionality and tons of fixes. You can find the release notes here and the major updates for this release.

Chained DSL Improvements

The methods aroundEach(), beforeEach() and afterEach() can now be chained as they return the Base Spec as well. So get funky with the DSL.

Null Support

You can now pass null into an expectation and TestBox will gracefully represent it instead of blowing up!

Method Mocking Performance

Thanks to method mocking performance has sky rocketed. He changed the filename generation to an MD5 hash of the code, and disabled removing the files. This allows TestBox to leverage ColdFusion template caching. This reduces the time that $() takes from ~30 ms to ~0 ms. It is a happy day for mocking!

Eager Failures

We have added a new argument to all TestBox run(), runRemote(), runRaw() commands: eagerFailure, which defaults to false. If this is turned on, then TestBox will gracefully short-circuit out of testing further Test Bundles if it finds any failures or errors on previous ones. This is useful for large suites that you want to stop testing if a failure is discovered.

Help for the Color Blind

This was another community driven contribution by to help those folks with . You can see the differences in color in the github pull request:

Before

After

Expanding of x exclusion Methods

You can now prefix the following methods with the letter x to exclude them from execution:

  • story()

  • given()

  • when()

  • then()

  • feature()

Release Notes

Bugs

New Features

Improvements

[] - Assertion argument order does not match testbox.system.assertion for the expected argument

[] - MockBox method subs are leaking whitespace

[] - Labels in an it() are ignored

[] - The recurse checkbox in test-runner doesn't work

[] - TestBox doesn't handle an interface CFC in the specs folder and chokes

[] - Return this from around,beforeEach and afterEach to have a chained DSL thanks to Jose Chavez

[] - Output null representation in output message

[] - wrap bundle runner execution in try/catch with rethrow

[] - Improved method mocking performance

[] - Provide a way to mute debug buffer on marshalled results

[] - Add eager failure argument to runner so if set and a bundle fails no more bundles are tested after

[] - Use correct key casing in report output

[] - switch pass/failed/error colors to help color blindness

[] - Exclude empty test suites from ANT JUnit Reporting

[] - Add x- methods to skip suites and specs to new BDD methods.

[] - Don't re-mock already mocked objects. #63

Pixilation
Ian Burns - iwburns
Color Blindness
https://github.com/Ortus-Solutions/TestBox/pull/60
TESTBOX-196
TESTBOX-199
TESTBOX-203
TESTBOX-215
TESTBOX-216
TESTBOX-195
TESTBOX-200
TESTBOX-201
TESTBOX-202
TESTBOX-204
TESTBOX-205
TESTBOX-208
TESTBOX-210
TESTBOX-211
TESTBOX-212
TESTBOX-214