testbox errors when using complete null support in railo

Description

When using complete null support in Railo 4.2, testbox throws the following error:
Message The parameter options to function init is required but was not passed in.
Stacktrace The Error Occurred in
---\lib\testbox\system\TestBox.cfc: line 351
349: if( structKeyExists( target, "run" ) ){
350: // Run via BDD Style
351: new testbox.system.runners.BDDRunner( options=variables.options )
352: .run( target, arguments.testResults );
353: }

called from ---\lib\testbox\system\TestBox.cfc: line 165
called from ---\lib\testbox\system\TestBox.cfc: line 96
called from ---\www\tests\index.cfm: line 42

(sensitive file path information removed).

IMO, the issue is the runRaw function which does not have required on the options argument but also does not provide a default. Providing a default there of {} (empty struct) resolves the issue. You could also alter the logic on line 124 to handle the isNull() option.

Please let me know if I can provide more information.

Assignee

Luis Majano

Reporter

Ryan Guill

Labels

Components

Fix versions

Affects versions

Priority

Minor
Configure