Some background. I’m running ACF on linux using apache.
My main application is running at the root of a domain. In my application.cfc, I have a mapping to / for the application and a mapping to /vtmo for the application.
I have added a global mapping for /mxunit and a directory mapping in apache to the correct path. Accessing /mxunit behaves as expected.
I’m using the standard htaccess file for redirects.
I couldn’t figure out why accessing /test on my application was failing so miserably until I started digging in the BaseTestCase.cfc file. Basically, expandPath() has problems with mod_rewrite in apache. Here are some relevant links: http://www.google.com/search?q=expandpath+mod_rewrite
I found that if I added “NS” to my last mod_rewrite line in .htaccess, expandPath behaved as expected. (http://old.nabble.com/Re%3A-expandPath()-and-mod_rewrite-td15057484.html)
BUT, now I’m having a problem when accessing the test through my browser that the exception handler as defined in my coldbox app is fired (and the page is redirected) instead of triggering a failed test.
Anyone have ANY clue what to do here??
I’m really at a loss and extremely frustrated with the difficulties I’ve had trying to get coldbox/mxunit working in my environment.
While this may or may not be related… I also can’t seem to get the mxunit runner to work with my setup in cfbuilder. It installs correctly and the remote facade test works as expected. But it doesn’t seem to be able to auto-find my tests, and when I add my tests manually to the mxunit runner, and attempt to run the tests I get:
Running method testcheck…
RemoteException: coldfusion.xml.rpc.CFCInvocationException: [coldfusion.runtime.AbortException : null]
If I comment out my “execute(‘some.event’)” line (with a valid event), the test passes correctly. I have tried changing the appMapping on my test case to “/” or “/vtmo” and both seem to behave the same.
I would really appreciate any suggestions or guidance here.
Thanks in advance you extremely smart, talented, helpful community