[Testbox] handling errors outside of tests

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 :slight_smile:

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

Hi Jim,

Here is my opinion.

Have you considered maybe using the command box-migrations module?

Luis Majano
CEO
Ortus Solutions, Corp

Support Our Open Source Projects: www.patreon.com/ortussolutions
Linked In: http://www.linkedin.com/pub/3/731/483
Social: twitter.com/ortussolutions | twitter.com/lmajano