Blog

TestBox v2.6.0 Released!

Luis Majano February 06, 2018

Spread the word

Luis Majano

February 06, 2018

Spread the word


Share your thoughts


We are excited to announce the release of TestBox version 2.6.0. To install just do:

box install testbox --savedev

To upgrade your current testbox installation just run the following:

box uninstall testbox && install testbox --savedev

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 Pixilation 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 Ian Burns - iwburns to help those folks with Color Blindness. You can see the differences in color in the github pull request: https://github.com/Ortus-Solutions/TestBox/pull/60

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()

There are many more improvements and bug fixes so keep exploring our release notes below!

Release Notes

Bugs

  • [TESTBOX-196] - Assertion argument order does not match testbox.system.assertion for the expected argument
  • [TESTBOX-199] - MockBox method subs are leaking whitespace
  • [TESTBOX-203] - Labels in an it() are ignored
  • [TESTBOX-215] - The recurse checkbox in test-runner doesn't work
  • [TESTBOX-216] - TestBox doesn't handle an interface CFC in the specs folder and chokes

New Features

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

Improvements

  • [TESTBOX-200] - Output null representation in output message
  • [TESTBOX-201] - wrap bundle runner execution in try/catch with rethrow
  • [TESTBOX-202] - Improved method mocking performance
  • [TESTBOX-204] - Provide a way to mute debug buffer on marshalled results
  • [TESTBOX-205] - Add eager failure argument to runner so if set and a bundle fails no more bundles are tested after
  • [TESTBOX-208] - Use correct key casing in report output
  • [TESTBOX-210] - switch pass/failed/error colors to help color blindness
  • [TESTBOX-211] - Exclude empty test suites from ANT JUnit Reporting
  • [TESTBOX-212] - Add x- methods to skip suites and specs to new BDD methods.
  • [TESTBOX-214] - Don't re-mock already mocked objects.

Add Your Comment

Recent Entries

BoxLang 1.0.0 Beta 7 Launched

BoxLang 1.0.0 Beta 7 Launched

We are pleased to announce the release of BoxLang 1.0.0-Beta 7! This latest beta version includes improvements and essential bug fixes, but more importantly it certifies the execution of ColdBox HMVC and TestBox.

What is BoxLang?

BoxLang is a modern dynamic JVM language that can be deployed on multiple runtimes: operating system (Windows/Mac/*nix/Embedded), web server, lambda, iOS, android, web assembly, and more. BoxLang combines many features from different progr

Luis Majano
Luis Majano
July 26, 2024
New BoxLang Feature: Java Method References and Higher-Order Functions

New BoxLang Feature: Java Method References and Higher-Order Functions

We’ve added more goodies to our BoxLang Java interop: method references and higher-order functions. CFML has never let you do these things, making Java Interop feel like a second-class citizen. But with BoxLang, we’re elevating Java integration to a new level.

Maria Jose Herrera
Maria Jose Herrera
July 26, 2024
Level Up Your ColdFusion Skills with our Virtual Live Training: ColdBox from Zero to Hero

Level Up Your ColdFusion Skills with our Virtual Live Training: ColdBox from Zero to Hero

Level Up Your ColdFusion Skills with our Virtual Live Training: ColdBox from Zero to Hero

Are you a CFML developer looking to take your skills to the next level? Look no further than the ColdBox from Zero to Hero Virtual Live Training! This intensive two-day course will equip you with the knowledge and expertise to build robust and scalable applications using ColdBox 7, the latest version of the most popular CFML MVC framework.

What You'll Learn:

  • Master the Fun...

Cristobal Escobar
Cristobal Escobar
July 24, 2024