Ok think I've got this up and running, got passing tests in both
browser and Eclipse, but if you don't mind I just want to check and
see if there is a better way of doing this before I move on...
In my "test" Application.cfc I've added some absolute addresses to a
number of places.... namely :-
<cfset this.mappings['/'] = 'C:\Inetpub\EnrolNow\www\' />
<cfset this.mappings['/config'] = 'C:\Inetpub\EnrolNow\www\config' /
>
<cfset this.mappings['/coldbox'] = 'C:\Inetpub\common\ColdBox\v3.0.0
M6 (vendor)\' />
<cfset this.mappings['/test'] = 'C:\Inetpub\EnrolNow\www\test' />
<cfset this.mappings['/mxunit'] = 'C:\Inetpub\common\MXUnit\v2.0.0
(vendor)' />
<cfset this.mappings['/transfer'] = 'C:\Inetpub\common\Transfer\v1.1
(vendor)' />
I'll tidy these up soon but just to say, that for some reason, MXUnit
didn't like the fact that my ColdBox configuration has a /config on
the path of my Transfer XML config file. I need that though otherwise
Transfer grumbles at me. Can anyone think of a cleaner way of doing
this so I don't need a mapping for everytime I have a "/" style
address? Preferably I'd like something off the back of the / mapping
CB related but - in the Unit Tests that came with ColdBox I had to
remove the appMapping attributes in the cfcomponent otherwise it was
trying to load things in from the demo files not my project.
----
In Eclipse I had to do the following in the MXUnit Properties of the
project .....
Test Runner URL -
http://localhost/project2/test/resources/RemoteFacade.cfc
cfc path: /
Again this was so the Facade was loaded in through the test
application and without the / in the cfc path MXUnit was trying to
load the tests up through www.test/ The / is a reference to the
mappings I've put in the Application.cfc.
All this seems to be working but if anyone has any suggestions on
improvement I'm all ears :-).
Cheers,
James