Working on getting tests written for our application.
One issue I’ve run into - for some of our apps we have a slight disconnect in our process in that a script will need to be run to setup a new table for example (no ORM). The developer will script the table, and write a test and everything works great on their computer
But if someone else runs that test it will fail since they don’t have that table with a not very helpful error.
coldfusion.tagext.sql.QueryTag$DatabaseQueryException: Error Executing Database Query
Is there some way I can provide better error handling for issues outside of my tests?
I’m just using the basic run() within my index.cfm
<cfset testbox = new testbox.system.TestBox( directory={ mapping=url.directory, recurse=url.recurse} )>
#testbox.run( reporter=url.reporter )#
Thanks!
Jim