Skip to content

improve debug

improve debug #1237

GitHub Actions / Lucee Test Results failed Jun 11, 2024 in 0s

1 fail, 195 skipped, 3 551 pass in 3m 36s

    1 files  ±0  1 443 suites  ±0   3m 36s ⏱️ +4s
3 747 tests ±0  3 551 ✅ +1  195 💤 ±0  1 ❌  - 1 
3 867 runs  ±0  3 650 ✅ +1  216 💤 ±0  1 ❌  - 1 

Results for commit 4f4906a. ± Comparison against earlier commit 055c71a.

Annotations

Check warning on line 0 in test.tickets.LDEV3739

See this annotation in the file changed.

@github-actions 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: &nbsp;&nbsp;&nbsp;function&nbsp;fail(&nbsp;message=&quot;&quot;&nbsp;){<br>
15: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;arguments.message&nbsp;=&nbsp;(&nbsp;len(&nbsp;arguments.message&nbsp;)&nbsp;?&nbsp;arguments.message&nbsp;:&nbsp;&quot;A&nbsp;test&nbsp;failure&nbsp;occurred&quot;&nbsp;);<br>
<b>16: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;throw(type=&quot;TestBox.AssertionFailed&quot;,&nbsp;message=arguments.message);</b><br>
17: &nbsp;&nbsp;&nbsp;}<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: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;arguments.message&nbsp;=&nbsp;(&nbsp;len(&nbsp;arguments.message&nbsp;)&nbsp;?&nbsp;arguments.message&nbsp;:&nbsp;&quot;The&nbsp;key&nbsp;[#arguments.key#]&nbsp;does&nbsp;not&nbsp;exist&nbsp;in&nbsp;the&nbsp;target&nbsp;object.&nbsp;Found&nbsp;keys&nbsp;are&nbsp;[#structKeyArray(&nbsp;arguments.target&nbsp;).toString()#]&quot;&nbsp;);<br>
254: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if(&nbsp;structKeyExists(&nbsp;arguments.target,&nbsp;arguments.key&nbsp;)&nbsp;){&nbsp;return&nbsp;this;&nbsp;}<br>
<b>255: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;fail(&nbsp;arguments.message&nbsp;);</b><br>
256: &nbsp;&nbsp;&nbsp;}<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: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;variables.assert.notKey(&nbsp;argumentCollection=arguments&nbsp;);<br>
274: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;else&nbsp;{<br>
<b>275: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;variables.assert.key(&nbsp;argumentCollection=arguments&nbsp;);</b><br>
276: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br>
277: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;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: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;expect(&nbsp;req.status_code&nbsp;).toBe(&nbsp;500&nbsp;);<br>
71: <br>
<b>72: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;expect(&nbsp;result&nbsp;).toHaveKey(&nbsp;&quot;error&quot;&nbsp;);</b><br>
73: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;expect(&nbsp;result&nbsp;).toHaveKey(&nbsp;&quot;catch&quot;&nbsp;);<br>
74: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;expect(&nbsp;result&nbsp;).toHaveKey(&nbsp;&quot;cfcatch&quot;&nbsp;);<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: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;else&nbsp;{<br>
566: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//&nbsp;Execute&nbsp;the&nbsp;Spec&nbsp;body<br>
<b>567: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;arguments.spec.body(&nbsp;data=arguments.spec.data&nbsp;);</b><br>
568: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br>
569: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;catch(&nbsp;any&nbsp;e&nbsp;){<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: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;suiteStats=thread.suiteStats,<br>
203: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;runner=this&nbsp;<br>
<b>204: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;);</b><br>
205: <br>
206: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//&nbsp;verify&nbsp;call&nbsp;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: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;testResults=arguments.testResults,<br>
74: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;bundleStats=bundleStats,<br>
<b>75: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;callbacks=arguments.callbacks</b><br>
76: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;);<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: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//&nbsp;Run&nbsp;via&nbsp;BDD&nbsp;Style<br>
363: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;new&nbsp;testbox.system.runners.BDDRunner(&nbsp;options=variables.options,&nbsp;testbox=this&nbsp;)<br>
<b>364: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.run(&nbsp;target,&nbsp;arguments.testResults,&nbsp;arguments.callbacks&nbsp;);</b><br>
365: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br>
366: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;for(&nbsp;var&nbsp;thisBundlePath&nbsp;in&nbsp;variables.bundles&nbsp;){<br>
169: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//&nbsp;Execute&nbsp;Bundle<br>
<b>170: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;testBundle(&nbsp;bundlePath=thisBundlePath,&nbsp;testResults=results,&nbsp;callbacks=arguments.callbacks&nbsp;);</b><br>
171: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<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: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if(&nbsp;!isNull(&nbsp;arguments.reporter&nbsp;)&nbsp;){&nbsp;variables.reporter&nbsp;=&nbsp;arguments.reporter;&nbsp;}<br>
97: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//&nbsp;run&nbsp;it&nbsp;and&nbsp;get&nbsp;results<br>
<b>98: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var&nbsp;results&nbsp;=&nbsp;runRaw(&nbsp;argumentCollection=arguments&nbsp;);</b><br>
99: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//&nbsp;store&nbsp;latest&nbsp;results<br>
100: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;variables.result&nbsp;=&nbsp;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: &nbsp;&nbsp;&nbsp;,onSpecEnd&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=&nbsp;function(&nbsp;bundle,&nbsp;testResults,&nbsp;suite,&nbsp;spec&nbsp;){}*/<br>
282: }&nbsp;//&nbsp;callbacks<br>
<b>283: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;);&nbsp;//&nbsp;report&nbsp;=&nbsp;tb.run</b><br>
284: <br>
285: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//&nbsp;get&nbsp;the&nbsp;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: &nbsp;&nbsp;&nbsp;systemOutput(NL&nbsp;&amp;&nbsp;&quot;--------------&nbsp;Start&nbsp;Tests&nbsp;-----------&quot;,&nbsp;true);<br>
283: &nbsp;&nbsp;&nbsp;silent&nbsp;{<br>
<b>284: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;testResults&nbsp;=&nbsp;new&nbsp;test._testRunner().runTests();</b><br>
285: &nbsp;&nbsp;&nbsp;}<br>
286: <br>
}}]