improve debug #1237
GitHub Actions / Lucee Test Results
failed
Jun 11, 2024 in 0s
1 fail, 195 skipped, 3 551 pass in 3m 36s
Annotations
Check warning on line 0 in test.tickets.LDEV3739
github-actions / Lucee Test Results
test 500 error page has error variable (test.tickets.LDEV3739) failed
test/reports/junit-test-results-6.0.3.1-SNAPSHOT.xml [took 0s]
Raw output
The key [error] does not exist in the target object. Found keys are [[catch, cfcatch]]
[{Raw_Trace={system.assertion_cfc$cf.udfCall1(/testbox/system/Assertion.cfc:16)}, codePrintPlain={14: function fail( message="" ){
15: arguments.message = ( len( arguments.message ) ? arguments.message : "A test failure occurred" );
16: throw(type="TestBox.AssertionFailed", message=arguments.message);
17: }
18:
}, column={0}, line={16}, template={/home/runner/work/Lucee/Lucee/temp/testbox/testbox/system/Assertion.cfc}, id={??}, type={cfml}, codePrintHTML={14: function fail( message="" ){<br>
15: arguments.message = ( len( arguments.message ) ? arguments.message : "A test failure occurred" );<br>
<b>16: throw(type="TestBox.AssertionFailed", message=arguments.message);</b><br>
17: }<br>
18: <br>
}}, {Raw_Trace={system.assertion_cfc$cf.udfCall2(/testbox/system/Assertion.cfc:255)}, codePrintPlain={253: arguments.message = ( len( arguments.message ) ? arguments.message : "The key [#arguments.key#] does not exist in the target object. Found keys are [#structKeyArray( arguments.target ).toString()#]" );
254: if( structKeyExists( arguments.target, arguments.key ) ){ return this; }
255: fail( arguments.message );
256: }
257:
}, column={0}, line={255}, template={/home/runner/work/Lucee/Lucee/temp/testbox/testbox/system/Assertion.cfc}, id={??}, type={cfml}, codePrintHTML={253: arguments.message = ( len( arguments.message ) ? arguments.message : "The key [#arguments.key#] does not exist in the target object. Found keys are [#structKeyArray( arguments.target ).toString()#]" );<br>
254: if( structKeyExists( arguments.target, arguments.key ) ){ return this; }<br>
<b>255: fail( arguments.message );</b><br>
256: }<br>
257: <br>
}}, {Raw_Trace={system.expectation_cfc$cf.udfCall2(/testbox/system/Expectation.cfc:275)}, codePrintPlain={273: variables.assert.notKey( argumentCollection=arguments );
274: } else {
275: variables.assert.key( argumentCollection=arguments );
276: }
277: return this;
}, column={0}, line={275}, template={/home/runner/work/Lucee/Lucee/temp/testbox/testbox/system/Expectation.cfc}, id={??}, type={cfml}, codePrintHTML={273: variables.assert.notKey( argumentCollection=arguments );<br>
274: } else {<br>
<b>275: variables.assert.key( argumentCollection=arguments );</b><br>
276: }<br>
277: return this;<br>
}}, {Raw_Trace={tickets.ldev3739_cfc$cf.udfCall(/test/tickets/LDEV3739.cfc:72)}, codePrintPlain={70: expect( req.status_code ).toBe( 500 );
71:
72: expect( result ).toHaveKey( "error" );
73: expect( result ).toHaveKey( "catch" );
74: expect( result ).toHaveKey( "cfcatch" );
}, column={0}, line={72}, template={/home/runner/work/Lucee/Lucee/test/tickets/LDEV3739.cfc}, id={??}, type={cfml}, codePrintHTML={70: expect( req.status_code ).toBe( 500 );<br>
71: <br>
<b>72: expect( result ).toHaveKey( "error" );</b><br>
73: expect( result ).toHaveKey( "catch" );<br>
74: expect( result ).toHaveKey( "cfcatch" );<br>
}}, {Raw_Trace={system.basespec_cfc$cf.udfCall3(/testbox/system/BaseSpec.cfc:567)}, codePrintPlain={565: } else {
566: // Execute the Spec body
567: arguments.spec.body( data=arguments.spec.data );
568: }
569: } catch( any e ){
}, column={0}, line={567}, template={/home/runner/work/Lucee/Lucee/temp/testbox/testbox/system/BaseSpec.cfc}, id={??}, type={cfml}, codePrintHTML={565: } else {<br>
566: // Execute the Spec body<br>
<b>567: arguments.spec.body( data=arguments.spec.data );</b><br>
568: }<br>
569: } catch( any e ){<br>
}}, {Raw_Trace={system.runners.bddrunner_cfc$cf.udfCall(/testbox/system/runners/BDDRunner.cfc:204)}, codePrintPlain={202: suiteStats=thread.suiteStats,
203: runner=this
204: );
205:
206: // verify call backs
}, column={0}, line={204}, template={/home/runner/work/Lucee/Lucee/temp/testbox/testbox/system/runners/BDDRunner.cfc}, id={??}, type={cfml}, codePrintHTML={202: suiteStats=thread.suiteStats,<br>
203: runner=this <br>
<b>204: );</b><br>
205: <br>
206: // verify call backs<br>
}}, {Raw_Trace={system.runners.bddrunner_cfc$cf.udfCall(/testbox/system/runners/BDDRunner.cfc:75)}, codePrintPlain={73: testResults=arguments.testResults,
74: bundleStats=bundleStats,
75: callbacks=arguments.callbacks
76: );
77:
}, column={0}, line={75}, template={/home/runner/work/Lucee/Lucee/temp/testbox/testbox/system/runners/BDDRunner.cfc}, id={??}, type={cfml}, codePrintHTML={73: testResults=arguments.testResults,<br>
74: bundleStats=bundleStats,<br>
<b>75: callbacks=arguments.callbacks</b><br>
76: );<br>
77: <br>
}}, {Raw_Trace={system.testbox_cfc$cf.udfCall1(/testbox/system/TestBox.cfc:364)}, codePrintPlain={362: // Run via BDD Style
363: new testbox.system.runners.BDDRunner( options=variables.options, testbox=this )
364: .run( target, arguments.testResults, arguments.callbacks );
365: }
366: else{
}, column={0}, line={364}, template={/home/runner/work/Lucee/Lucee/temp/testbox/testbox/system/TestBox.cfc}, id={??}, type={cfml}, codePrintHTML={362: // Run via BDD Style<br>
363: new testbox.system.runners.BDDRunner( options=variables.options, testbox=this )<br>
<b>364: .run( target, arguments.testResults, arguments.callbacks );</b><br>
365: }<br>
366: else{<br>
}}, {Raw_Trace={system.testbox_cfc$cf.udfCall1(/testbox/system/TestBox.cfc:170)}, codePrintPlain={168: for( var thisBundlePath in variables.bundles ){
169: // Execute Bundle
170: testBundle( bundlePath=thisBundlePath, testResults=results, callbacks=arguments.callbacks );
171: }
172:
}, column={0}, line={170}, template={/home/runner/work/Lucee/Lucee/temp/testbox/testbox/system/TestBox.cfc}, id={??}, type={cfml}, codePrintHTML={168: for( var thisBundlePath in variables.bundles ){<br>
169: // Execute Bundle<br>
<b>170: testBundle( bundlePath=thisBundlePath, testResults=results, callbacks=arguments.callbacks );</b><br>
171: }<br>
172: <br>
}}, {Raw_Trace={system.testbox_cfc$cf.udfCall1(/testbox/system/TestBox.cfc:98)}, codePrintPlain={96: if( !isNull( arguments.reporter ) ){ variables.reporter = arguments.reporter; }
97: // run it and get results
98: var results = runRaw( argumentCollection=arguments );
99: // store latest results
100: variables.result = results;
}, column={0}, line={98}, template={/home/runner/work/Lucee/Lucee/temp/testbox/testbox/system/TestBox.cfc}, id={??}, type={cfml}, codePrintHTML={96: if( !isNull( arguments.reporter ) ){ variables.reporter = arguments.reporter; }<br>
97: // run it and get results<br>
<b>98: var results = runRaw( argumentCollection=arguments );</b><br>
99: // store latest results<br>
100: variables.result = results;<br>
}}, {Raw_Trace={_testrunner_cfc$cf.udfCall(/test/_testRunner.cfc:283)}, codePrintPlain={281: ,onSpecEnd = function( bundle, testResults, suite, spec ){}*/
282: } // callbacks
283: ); // report = tb.run
284:
285: // get the result
}, column={0}, line={283}, template={/home/runner/work/Lucee/Lucee/test/_testRunner.cfc}, id={??}, type={cfml}, codePrintHTML={281: ,onSpecEnd = function( bundle, testResults, suite, spec ){}*/<br>
282: } // callbacks<br>
<b>283: ); // report = tb.run</b><br>
284: <br>
285: // get the result<br>
}}, {Raw_Trace={run_tests_cfm180$cf.call(/test/run-tests.cfm:284)}, codePrintPlain={282: systemOutput(NL & "-------------- Start Tests -----------", true);
283: silent {
284: testResults = new test._testRunner().runTests();
285: }
286:
}, column={0}, line={284}, template={/home/runner/work/Lucee/Lucee/test/run-tests.cfm}, id={??}, type={cfml}, codePrintHTML={282: systemOutput(NL & "-------------- Start Tests -----------", true);<br>
283: silent {<br>
<b>284: testResults = new test._testRunner().runTests();</b><br>
285: }<br>
286: <br>
}}]
Loading