Every ColdBox application template comes with a nice test harness inside of a tests folder.
Test Harness
File/Folder
Description
Application.cfc
A unique application file for your test harness. It should mimic exactly the one in your root application folder
resources
Some basic testing resources or any of your own testing resources
runner.cfm
The HTML runner for your test bundles
specs
Where you will write your testing bundle specs for integration, unit, and module testing, try to use the convention of {name}Spec.cfc or {name}Test.cfc
test.xml
A TestBox ANT runner
Application.cfc
The Application.cfc for your tests is extremely important as it should mimic your applications real Application.cfc.
Please note that we provide already a mapping to your root application via /root and a mapping to the tests themselves via /tests . We recommend you add any ORM specs or any other mappings here.
Tip: Make sure all the same settings and configs from your root Application.cfc are replicated in your tests Application.cfc