Mapping Best Practices Questions

My ColdBox application is currently set up with a / application mapping. It is accessed via http at example.com/index.cfm

I just started to try to set up integration testing, and I’m having some problems.

Application.cfc has this at the top:

// ColdBox Specifics
COLDBOX_APP_ROOT_PATH = getDirectoryFromPath(getCurrentTemplatePath());
COLDBOX_APP_MAPPING = “”;
COLDBOX_CONFIG_FILE = “”;
COLDBOX_APP_KEY = “”;

this.mappings["/"] = getDirectoryFromPath(getCurrentTemplatePath());

I can’t seem to figure out how to set up my testing environment to refer to this application.

Is there a better way to approach setting up applications w/ app specific mappings that work at the top-level domain instead of example.com/myApp/ ??

I just feel like i’m missing some understanding here. Any tips or pointers would be greatly appreciated.

-Ben

Are you talking about integration testing or unit testing, and what framework are you using.

Unit testing I use mxUnit and it is very easy to setup if you follow the instructions, but there are a couple of instances where a non standard project setup is a little bit harder.

Can you be a little more specific about what you problem is, what the error is etc.

Regards,

Andrew Scott

http://www.andyscott.id.au/

Are you talking about integration testing or unit testing, and what framework are you using.

Unit testing I use mxUnit and it is very easy to setup if you follow the instructions, but there are a couple of instances where a non standard project setup is a little bit harder.

Can you be a little more specific about what you problem is, what the error is etc.