[TestBox] How to configure?

Configuring TestBox

Hi. I have a large-ish legacy ColdBox/ORM app into which I’d like to start introducing Unit Tests and Integration Tests. I am having trouble setting up the TestBox framework sucessfully.

Starting with the Application.cfc, I have copied the settings from the ‘Basic Application.cfc’ (http://wiki.coldbox.org/wiki/Testing.cfm#Integration_Testing).

I then run the url: http://[mysite]/test/TestSuite.cfm

The first thing that happens is that I get an error telling me, “Could not find the ColdFusion component or interface /app.decorators.EmailAppender” which is in my \root\decorators\ directory.

If I add,

this.ormEnabled = true;
this.datasource = “[mydatasource]”;
rootPath = replacenocase(replacenocase(getDirectoryFromPath(getCurrentTemplatePath()),“test\”,""),“test/”,"");
this.mappings["/root"] = rootPath;
this.mappings["/coldbox"] = rootPath & “/coldbox” ;

I get the same error.

So I assume I need to use the settings found in ‘More Complex Application.cfc’ (http://wiki.coldbox.org/wiki/Testing.cfm#Integration_Testing), but I’m not certain how to adapt them to my own application.

Help and advice anyone?