satauros
10/25/2022, 6:47 PMbdw429s
10/25/2022, 8:54 PMsatauros
10/26/2022, 4:47 AMadobe@2016
as engine)
⢠TestBox testbox-4.5.0+5-202112132349
with index.cfm containing the following code:
<cfparam name="url.opt_run" default="true">
<cfparam name="url.recurse" default="true">
<cfparam name="url.coverageEnabled" default="true">
<cfparam name="url.coveragePathToCapture" default="#expandPath( '/subsidies/models' )#">
<cfparam name="url.coverageWhitelist" default="">
<cfparam name="url.coverageBlacklist" default="/qb,/testbox,/tests,Application.cfc,/index.cfm,/reset.cfm">
<cfinclude template="../libs/testbox/test-runner/index.cfm">
Using server start
I spin up the server and navigate to http://127.0.0.1/tests/ which yields the following error : https://gist.github.com/satauros/ef8ec8ac0d8e1dc5e482453a1030a8eb
I've narrowed it down to line 111 in testbox.system.coverage.browser.CodeBrowser.cfc (well duh, following the stack trace mentioned above ofc :D), but I have no idea as to why it fails...
At this point i've implemented a "hack" by wrapping the fileWrite( ... )
with a try{ } catch { }
block, but now I don't trust the results of the coverage anymore...bdw429s
10/26/2022, 3:53 PMbdw429s
10/26/2022, 3:53 PMsavecontent variable="local.fileTemplate" {
include "templates/file.cfm";
}
fileWrite( theFile, local.fileTemplate );
There's literally no way local.fileTemplate
shouldn't be defined right there.satauros
10/26/2022, 3:53 PMbdw429s
10/26/2022, 3:53 PMbdw429s
10/26/2022, 3:54 PMbdw429s
10/26/2022, 3:54 PMsatauros
10/26/2022, 3:55 PMsatauros
10/26/2022, 3:55 PMbdw429s
10/26/2022, 3:55 PMbdw429s
10/26/2022, 3:56 PMfor()
loop would "work" (but be slower)bdw429s
10/26/2022, 3:56 PMbdw429s
10/26/2022, 3:56 PMsatauros
10/26/2022, 4:06 PMsatauros
10/26/2022, 4:47 PM