richard.herbert
02/03/2023, 8:22 PMrichard.herbert
02/03/2023, 8:28 PMtestbox.system.BaseSpec
jclausen
02/05/2023, 4:34 AMrichard.herbert
02/06/2023, 11:14 AMtestbox generate harness
• Copied /testbox/test-browser/index.cfm
to /tests/index.cfm
• In /tests/index.cfm
line 5 changed "/testbox/tests/specs/"
to "/tests/specs/"
http://localhost/tests/specs/BDDTest.cfc?method=runRemote - returns nothing
http://localhost/tests/index.cfm?action=runTestBox&path=%2F - works
This is not a ColdBox site, if that helps?jclausen
02/06/2023, 2:04 PMjclausen
02/06/2023, 2:24 PMApplication.cfc
nested in your tests/specs
directory which has an abort
tag? This is a common method for preventing execution of views and components but, in this case, we wouldn’t want that there.richard.herbert
02/06/2023, 2:30 PMImportant TestBox is a standalone testing package and is meant to be used with any ColdFusion (CFML) application, framework or library. IT IS NOT ONLY FOR COLDBOX APPLICATIONS.I have used TestBox before on non-ColdBox project. It does extend
testbox.system.BaseSpec
rather than coldbox…
I’m using the latest TestBox - 4.5.0+5
I currently have one, the first, test cfc in my specs folder.
Could it be a web server issue? For local dev I’m using macOS/Apache. I’m trying to get on a Windows/IIS box to test there.jclausen
02/06/2023, 2:31 PM.cfc
extensions are blocked.jclausen
02/06/2023, 2:31 PMjclausen
02/06/2023, 2:32 PMmod_rewrite
rules to see if there is something explicit on .cfc
files in there.jclausen
02/06/2023, 2:33 PMjclausen
02/06/2023, 2:33 PMjclausen
02/06/2023, 2:33 PM.htaccess
file for its rewrite rules.richard.herbert
02/06/2023, 2:39 PMserver.json
I’m actually using modCFML to host multiple contexts under one instance of Lucee 5.3.10+97
with CommandBox Services Manager.
A lot of moving parts 😉 but I’ll look at moving Apache out of the way unless you have any further thoughts on my responses to your points?jclausen
02/06/2023, 2:45 PMjclausen
02/06/2023, 2:49 PMApplication.cfc
method called onCFCRequest
which executes when a request to a component has been called. You might want to check if that method is present and doing anything to modify the request.richard.herbert
02/06/2023, 3:03 PM