Blog

TestBox v2.4.0 Released!

Luis Majano November 18, 2016

Spread the word

Luis Majano

November 18, 2016

Spread the word


Share your thoughts

What's New With 2.4.0

TestBox 2.4.0 is a minor release with some great new functionality and tons of fixes. This release has been a great community effort as many people in the community contributed to its release. Special thanks to Eric Peterson, Joe Gooch and Sean Corfield for their additions, testing and contributions.

New toSatisfy matcher

This new matcher is thanks to Sean Corfield. It allows you to create your own closure that will evaluate the expectation and then decide if it passes the given truth test.


it( "can satisfy truth tests", function(){

    expect( 1 ).toSatisfy( function( num ){ return arguments.num > 0; } );

    expect( 0 ).notToSatisfy( function( num ){ return arguments.num > 0; } );

});

New expectAll() collection expectation

Sean was busy in this release and provided us with this awesome feature in which you can call on a new expectAll() and pass either an array or struct. TestBox will then iterate for you and call all the chained matchers upon the collection items.


it( "can test a collection", function(){
    expectAll( [2,4,6,8] ).toSatisfy( function(x){ return 0 == x%2; });
    expectAll( {a:2,b:4,c:6} ).toSatisfy( function(x){ return 0 == x%2; });

    // and we can chain matchers
    expectAll( [2,4,6,8] )
        .toBeGTE( 2 )
        .toBeLTE( 8 );
});

New mintext Reporter

This new reporter is to enhance console based runners in order for the report to be more legible.

New JSON Matchers & Assertions

You can now use a toBeJSON() matcher or a $assert.isJSON assertion.

No more runRemote

You no longer need to pass ?method=runRemote in the URL when executing a test bundle via the URL. This will automatically be added for you.

New Fluent API for Testing Declarations

Thanks to Joe Gooch you can now use the new methods in the TestBox cfc

  • addDirectory()
  • addDirectories()
  • addBundles()

You can chain them as you see fit and they will aggregate the specs collected.

Release Notes

Here is the full release notes for this release

Bugs

  • [TESTBOX-169] - discover if fail origin exists in errors and failures, else ignore as it causes issues
  • [TESTBOX-170] - Custom reporter passed as CFC instance doesn't work

New Features

  • [TESTBOX-171] - New mintext reporter
  • [TESTBOX-172] - new matcher toBeJSON and new assertion isJSON
  • [TESTBOX-175] - No need to pass method=runRemote anymore on spec runners, defaults now
  • [TESTBOX-176] - Implements fluent API - addDirectory,addBundles,addDirectories on TestBox Core

Improvements

  • [TESTBOX-168] - runRemote operations are not setting the default response to HTML, so wddx takes over
  • [TESTBOX-173] - Add toSatisfy( predicate ) matcher
  • [TESTBOX-174] - Add expectAll() to make it easier to work with collections

Add Your Comment

Recent Entries

November 2026 Roundup: What’s New Across Ortus Solutions & BoxLang

November 2026 Roundup: What’s New Across Ortus Solutions & BoxLang

From BoxLang 1.19 and BoxLang AI 3.7 to new migration tooling, QA insights, hands-on AI development with students, and community events around the world, this month continued to show how the different parts of our ecosystem connect.

We also officially launched Into the Box 2027 in Orlando and opened our Ortus Year-End Offers, giving teams new ways to start planning their development, modernization, and training goals for the year ahead.

Here’s everything you may have missed in November.

Victor Campos
Victor Campos
December 01, 2026
Is Your CFML Upgrade Overdue? See Where BoxLang and BxLens Can Help

Is Your CFML Upgrade Overdue? See Where BoxLang and BxLens Can Help

An overdue ColdFusion or Lucee upgrade gets easier to scope when you know which workflows could be affected. See how BoxLang helps you assess a migration and how BxLens helps you investigate slow requests and recurring errors.

Maria Jose Herrera
Maria Jose Herrera
November 30, 2026
Announcing bxSites 1.0: Every Site You Run, From One Folder of Markdown

Announcing bxSites 1.0: Every Site You Run, From One Folder of Markdown

Ortus Solutions today announced bxSites 1.0, the first stable release of its free and open source site generator. bxSites turns plain Markdown into documentation, marketing sites, blogs, courses and knowledge bases that load fast, get found, read well for AI, deploy to any host and belong entirely to you.

Luis Majano
Luis Majano
November 30, 2026