Test Harness
Every ColdBox application template comes with a nice test harness inside of a tests folder.

Here is a breakdown of what it contains:
Application.cfc- A unique application file for your test harness. It should mimic exactly the one in your root application folderresources- Some basic testing resources or any of your own testing resourcesresults- Where automated results are archivedrunner.cfm- The HTML runner for your test bundlesspecs- Where you will be writing your testing bundle specs for integration testing, unit testing and module testing.test.xml- Your ANT runner
Application.cfc
The Application.cfc for your tests is extremly important as it should mimic your applications real Application.cfc.
Please note that we provide already a mapping to your root application via /root. We would recommend you add any ORM specs here or any other mappings here as well.
Tip: Make sure all the same settings and configs from your root Application.cfc are replicated in your tests Application.cfc
Last updated
Was this helpful?