tests: use a fresh application scope for each bundle #1412
GitHub Actions / Lucee Test Results
failed
Dec 7, 2024 in 0s
2 fail, 226 skipped, 3 613 pass in 4m 9s
Annotations
Check warning on line 0 in test.datasource.MongoDB
github-actions / Lucee Test Results
testMongoDBID (test.datasource.MongoDB) failed
test/reports/junit-test-results-6.2.0.188-SNAPSHOT.xml [took 0s]
Raw output
Actual data [org.lucee.mongodb.ObjectIdImpl] is not of this type: [Date]
[{Raw_Trace={system.assertion_cfc$cf$1ai.udfCall1(/testbox/system/Assertion.cfc:20)}, codePrintPlain={18: type = "TestBox.AssertionFailed",
19: message = arguments.message,
20: detail = arguments.detail
21: );
22: }
}, column={0}, line={20}, template={/home/runner/work/Lucee/Lucee/temp/testbox/system/Assertion.cfc}, id={??}, type={cfml}, codePrintHTML={18: type = "TestBox.AssertionFailed",<br>
19: message = arguments.message,<br>
<b>20: detail = arguments.detail</b><br>
21: );<br>
22: }<br>
}}, {Raw_Trace={system.assertion_cfc$cf$1ai.udfCall2(/testbox/system/Assertion.cfc:252)}, codePrintPlain={250: return this;
251: }
252: fail( arguments.message );
253: }
254:
}, column={0}, line={252}, template={/home/runner/work/Lucee/Lucee/temp/testbox/system/Assertion.cfc}, id={??}, type={cfml}, codePrintHTML={250: return this;<br>
251: }<br>
<b>252: fail( arguments.message );</b><br>
253: }<br>
254: <br>
}}, {Raw_Trace={system.expectation_cfc$cf$1af.udfCall2(/testbox/system/Expectation.cfc:358)}, codePrintPlain={356: variables.assert.notTypeOf( argumentCollection = arguments );
357: } else {
358: variables.assert.typeOf( argumentCollection = arguments );
359: }
360: return this;
}, column={0}, line={358}, template={/home/runner/work/Lucee/Lucee/temp/testbox/system/Expectation.cfc}, id={??}, type={cfml}, codePrintHTML={356: variables.assert.notTypeOf( argumentCollection = arguments );<br>
357: } else {<br>
<b>358: variables.assert.typeOf( argumentCollection = arguments );</b><br>
359: }<br>
360: return this;<br>
}}, {Raw_Trace={system.expectation_cfc$cf$1af.udfCall1(/testbox/system/Expectation.cfc:110)}, codePrintPlain={108: );
109: // execute the method
110: return toBeTypeOf( type = type, message = message );
111: }
112:
}, column={0}, line={110}, template={/home/runner/work/Lucee/Lucee/temp/testbox/system/Expectation.cfc}, id={??}, type={cfml}, codePrintHTML={108: );<br>
109: // execute the method<br>
<b>110: return toBeTypeOf( type = type, message = message );</b><br>
111: }<br>
112: <br>
}}, {Raw_Trace={datasource.mongodb_cfc$cf$1ar.udfCall1(/test/datasource/MongoDB.cfc:124)}, codePrintPlain={122: systemOutput( id.toString(), true );
123: systemOutput( serializeJson(id), true );
124: expect( id ).toBeDate();
125: $assert.key(id,"date");
126: $assert.key(id,"timestamp");
}, column={0}, line={124}, template={/home/runner/work/Lucee/Lucee/test/datasource/MongoDB.cfc}, id={??}, type={cfml}, codePrintHTML={122: systemOutput( id.toString(), true );<br>
123: systemOutput( serializeJson(id), true );<br>
<b>124: expect( id ).toBeDate();</b><br>
125: $assert.key(id,"date");<br>
126: $assert.key(id,"timestamp");<br>
}}, {Raw_Trace={system.basespec_cfc$cf$1ae.udfCall6(/testbox/system/BaseSpec.cfc:1385)}, codePrintPlain={1383: // Execute Spec
1384: try {
1385: invoke( this, arguments.spec.name );
1386:
1387: // Where we expecting an exception and it did not throw?
}, column={0}, line={1385}, template={/home/runner/work/Lucee/Lucee/temp/testbox/system/BaseSpec.cfc}, id={??}, type={cfml}, codePrintHTML={1383: // Execute Spec<br>
1384: try {<br>
<b>1385: invoke( this, arguments.spec.name );</b><br>
1386: <br>
1387: // Where we expecting an exception and it did not throw?<br>
}}, {Raw_Trace={system.runners.unitrunner_cfc$cf$1aj.udfCall(/testbox/system/runners/UnitRunner.cfc:310)}, codePrintPlain={308: suiteStats = thread.suiteStats,
309: runner = this
310: );
311:
312: // verify call backs
}, column={0}, line={310}, template={/home/runner/work/Lucee/Lucee/temp/testbox/system/runners/UnitRunner.cfc}, id={??}, type={cfml}, codePrintHTML={308: suiteStats = thread.suiteStats,<br>
309: runner = this<br>
<b>310: );</b><br>
311: <br>
312: // verify call backs<br>
}}, {Raw_Trace={system.runners.unitrunner_cfc$cf$1aj.udfCall(/testbox/system/runners/UnitRunner.cfc:111)}, codePrintPlain={109: testResults = arguments.testResults,
110: bundleStats = bundleStats,
111: callbacks = arguments.callbacks
112: );
113:
}, column={0}, line={111}, template={/home/runner/work/Lucee/Lucee/temp/testbox/system/runners/UnitRunner.cfc}, id={??}, type={cfml}, codePrintHTML={109: testResults = arguments.testResults,<br>
110: bundleStats = bundleStats,<br>
<b>111: callbacks = arguments.callbacks</b><br>
112: );<br>
113: <br>
}}, {Raw_Trace={system.testbox_cfc$cf$19i.udfCall3(/testbox/system/TestBox.cfc:761)}, codePrintPlain={759: target,
760: arguments.testResults,
761: arguments.callbacks
762: );
763: }
}, column={0}, line={761}, template={/home/runner/work/Lucee/Lucee/temp/testbox/system/TestBox.cfc}, id={??}, type={cfml}, codePrintHTML={759: target,<br>
760: arguments.testResults,<br>
<b>761: arguments.callbacks</b><br>
762: );<br>
763: }<br>
}}, {Raw_Trace={system.testbox_cfc$cf$19i.udfCall2(/testbox/system/TestBox.cfc:462)}, codePrintPlain={460: bundlePath = thisBundlePath,
461: testResults = results,
462: callbacks = arguments.callbacks
463: );
464:
}, column={0}, line={462}, template={/home/runner/work/Lucee/Lucee/temp/testbox/system/TestBox.cfc}, id={??}, type={cfml}, codePrintHTML={460: bundlePath = thisBundlePath,<br>
461: testResults = results,<br>
<b>462: callbacks = arguments.callbacks</b><br>
463: );<br>
464: <br>
}}, {Raw_Trace={system.testbox_cfc$cf$19i.udfCall2(/testbox/system/TestBox.cfc:351)}, codePrintPlain={349: }
350: // run it and get results
351: var results = runRaw( argumentCollection = arguments );
352: // store latest results
353: variables.result = results;
}, column={0}, line={351}, template={/home/runner/work/Lucee/Lucee/temp/testbox/system/TestBox.cfc}, id={??}, type={cfml}, codePrintHTML={349: }<br>
350: // run it and get results<br>
<b>351: var results = runRaw( argumentCollection = arguments );</b><br>
352: // store latest results<br>
353: variables.result = results;<br>
}}, {Raw_Trace={_testrunner_cfc$cf$5.udfCall(/test/_testRunner.cfc:297)}, codePrintPlain={295: ,onSpecEnd = function( bundle, testResults, suite, spec ){}*/
296: } // callbacks
297: ); // report = tb.run
298:
299: // get the result
}, column={0}, line={297}, template={/home/runner/work/Lucee/Lucee/test/_testRunner.cfc}, id={??}, type={cfml}, codePrintHTML={295: ,onSpecEnd = function( bundle, testResults, suite, spec ){}*/<br>
296: } // callbacks<br>
<b>297: ); // report = tb.run</b><br>
298: <br>
299: // get the result<br>
}}, {Raw_Trace={run_tests_cfm180$cf$1.call(/test/run-tests.cfm:348)}, codePrintPlain={346: systemOutput(NL & "-------------- Start Tests -----------", true);
347: silent {
348: testResults = new test._testRunner().runTests();
349: }
350:
}, column={0}, line={348}, template={/home/runner/work/Lucee/Lucee/test/run-tests.cfm}, id={??}, type={cfml}, codePrintHTML={346: systemOutput(NL & "-------------- Start Tests -----------", true);<br>
347: silent {<br>
<b>348: testResults = new test._testRunner().runTests();</b><br>
349: }<br>
350: <br>
}}]
Check warning on line 0 in test.tags.Query
github-actions / Lucee Test Results
testAsynUDF (test.tags.Query) failed
test/reports/junit-test-results-6.2.0.188-SNAPSHOT.xml [took 0s]
Raw output
Expected [false] to be true
[{Raw_Trace={system.assertion_cfc$cf$1ai.udfCall1(/testbox/system/Assertion.cfc:20)}, codePrintPlain={18: type = "TestBox.AssertionFailed",
19: message = arguments.message,
20: detail = arguments.detail
21: );
22: }
}, column={0}, line={20}, template={/home/runner/work/Lucee/Lucee/temp/testbox/system/Assertion.cfc}, id={??}, type={cfml}, codePrintHTML={18: type = "TestBox.AssertionFailed",<br>
19: message = arguments.message,<br>
<b>20: detail = arguments.detail</b><br>
21: );<br>
22: }<br>
}}, {Raw_Trace={system.assertion_cfc$cf$1ai.udfCall1(/testbox/system/Assertion.cfc:60)}, codePrintPlain={58: );
59: if ( NOT arguments.actual ) {
60: fail( arguments.message );
61: }
62: return this;
}, column={0}, line={60}, template={/home/runner/work/Lucee/Lucee/temp/testbox/system/Assertion.cfc}, id={??}, type={cfml}, codePrintHTML={58: );<br>
59: if ( NOT arguments.actual ) {<br>
<b>60: fail( arguments.message );</b><br>
61: }<br>
62: return this;<br>
}}, {Raw_Trace={system.expectation_cfc$cf$1af.udfCall1(/testbox/system/Expectation.cfc:140)}, codePrintPlain={138: variables.assert.isFalse( argumentCollection = arguments );
139: } else {
140: variables.assert.isTrue( argumentCollection = arguments );
141: }
142:
}, column={0}, line={140}, template={/home/runner/work/Lucee/Lucee/temp/testbox/system/Expectation.cfc}, id={??}, type={cfml}, codePrintHTML={138: variables.assert.isFalse( argumentCollection = arguments );<br>
139: } else {<br>
<b>140: variables.assert.isTrue( argumentCollection = arguments );</b><br>
141: }<br>
142: <br>
}}, {Raw_Trace={tags.query_cfc$cf$2a9.udfCall2(/test/tags/Query.cfc:237)}, codePrintPlain={235: application.query_testAsynUDF=false;
236: testAsyn(udf,tbl,0);
237: expect(application.query_testAsynUDF).toBeTrue();
238: }
239:
}, column={0}, line={237}, template={/home/runner/work/Lucee/Lucee/test/tags/Query.cfc}, id={??}, type={cfml}, codePrintHTML={235: application.query_testAsynUDF=false;<br>
236: testAsyn(udf,tbl,0);<br>
<b>237: expect(application.query_testAsynUDF).toBeTrue();</b><br>
238: }<br>
239: <br>
}}, {Raw_Trace={system.basespec_cfc$cf$1ae.udfCall6(/testbox/system/BaseSpec.cfc:1385)}, codePrintPlain={1383: // Execute Spec
1384: try {
1385: invoke( this, arguments.spec.name );
1386:
1387: // Where we expecting an exception and it did not throw?
}, column={0}, line={1385}, template={/home/runner/work/Lucee/Lucee/temp/testbox/system/BaseSpec.cfc}, id={??}, type={cfml}, codePrintHTML={1383: // Execute Spec<br>
1384: try {<br>
<b>1385: invoke( this, arguments.spec.name );</b><br>
1386: <br>
1387: // Where we expecting an exception and it did not throw?<br>
}}, {Raw_Trace={system.runners.unitrunner_cfc$cf$1aj.udfCall(/testbox/system/runners/UnitRunner.cfc:310)}, codePrintPlain={308: suiteStats = thread.suiteStats,
309: runner = this
310: );
311:
312: // verify call backs
}, column={0}, line={310}, template={/home/runner/work/Lucee/Lucee/temp/testbox/system/runners/UnitRunner.cfc}, id={??}, type={cfml}, codePrintHTML={308: suiteStats = thread.suiteStats,<br>
309: runner = this<br>
<b>310: );</b><br>
311: <br>
312: // verify call backs<br>
}}, {Raw_Trace={system.runners.unitrunner_cfc$cf$1aj.udfCall(/testbox/system/runners/UnitRunner.cfc:111)}, codePrintPlain={109: testResults = arguments.testResults,
110: bundleStats = bundleStats,
111: callbacks = arguments.callbacks
112: );
113:
}, column={0}, line={111}, template={/home/runner/work/Lucee/Lucee/temp/testbox/system/runners/UnitRunner.cfc}, id={??}, type={cfml}, codePrintHTML={109: testResults = arguments.testResults,<br>
110: bundleStats = bundleStats,<br>
<b>111: callbacks = arguments.callbacks</b><br>
112: );<br>
113: <br>
}}, {Raw_Trace={system.testbox_cfc$cf$19i.udfCall3(/testbox/system/TestBox.cfc:761)}, codePrintPlain={759: target,
760: arguments.testResults,
761: arguments.callbacks
762: );
763: }
}, column={0}, line={761}, template={/home/runner/work/Lucee/Lucee/temp/testbox/system/TestBox.cfc}, id={??}, type={cfml}, codePrintHTML={759: target,<br>
760: arguments.testResults,<br>
<b>761: arguments.callbacks</b><br>
762: );<br>
763: }<br>
}}, {Raw_Trace={system.testbox_cfc$cf$19i.udfCall2(/testbox/system/TestBox.cfc:462)}, codePrintPlain={460: bundlePath = thisBundlePath,
461: testResults = results,
462: callbacks = arguments.callbacks
463: );
464:
}, column={0}, line={462}, template={/home/runner/work/Lucee/Lucee/temp/testbox/system/TestBox.cfc}, id={??}, type={cfml}, codePrintHTML={460: bundlePath = thisBundlePath,<br>
461: testResults = results,<br>
<b>462: callbacks = arguments.callbacks</b><br>
463: );<br>
464: <br>
}}, {Raw_Trace={system.testbox_cfc$cf$19i.udfCall2(/testbox/system/TestBox.cfc:351)}, codePrintPlain={349: }
350: // run it and get results
351: var results = runRaw( argumentCollection = arguments );
352: // store latest results
353: variables.result = results;
}, column={0}, line={351}, template={/home/runner/work/Lucee/Lucee/temp/testbox/system/TestBox.cfc}, id={??}, type={cfml}, codePrintHTML={349: }<br>
350: // run it and get results<br>
<b>351: var results = runRaw( argumentCollection = arguments );</b><br>
352: // store latest results<br>
353: variables.result = results;<br>
}}, {Raw_Trace={_testrunner_cfc$cf$5.udfCall(/test/_testRunner.cfc:297)}, codePrintPlain={295: ,onSpecEnd = function( bundle, testResults, suite, spec ){}*/
296: } // callbacks
297: ); // report = tb.run
298:
299: // get the result
}, column={0}, line={297}, template={/home/runner/work/Lucee/Lucee/test/_testRunner.cfc}, id={??}, type={cfml}, codePrintHTML={295: ,onSpecEnd = function( bundle, testResults, suite, spec ){}*/<br>
296: } // callbacks<br>
<b>297: ); // report = tb.run</b><br>
298: <br>
299: // get the result<br>
}}, {Raw_Trace={run_tests_cfm180$cf$1.call(/test/run-tests.cfm:348)}, codePrintPlain={346: systemOutput(NL & "-------------- Start Tests -----------", true);
347: silent {
348: testResults = new test._testRunner().runTests();
349: }
350:
}, column={0}, line={348}, template={/home/runner/work/Lucee/Lucee/test/run-tests.cfm}, id={??}, type={cfml}, codePrintHTML={346: systemOutput(NL & "-------------- Start Tests -----------", true);<br>
347: silent {<br>
<b>348: testResults = new test._testRunner().runTests();</b><br>
349: }<br>
350: <br>
}}]
Loading