[coldbox-3.1.0] MXUnit with Coldbox (ObjectUnderTest not found)

I’m trying to use mxunit under Coldbox. I’m fairly new to unit testing (as is this client, who has never even heard of it)… so I’m trying to set it up for them while expanding my own skillset. :slight_smile:

Anyway, I have the framework installed on the webroot, the mxunit plug-in in Eclipse, etc The current path is server:1234/mxunit or server:1234/myapp/test

In the mxunit properties under the project, I have myapp.test specified in the component root. Yet whenever I try to run the test, I get:

coldfusion.xml.rpc.CFCInvocationException: [coldfusion.runtime.CfJspPage$NoSuchTemplateException : Could not find the ColdFusion component or interface ObjectUnderTest.Ensure that the name is correct and that the component or interface exists.]

I’ve been Googling but haven’t come up with anything that has helped. I keep playing with the component root but that hasn’t helped either.

What am I doing wrong?



Rob can you post the setup and code here


Luis F. Majano
Ortus Solutions, Corp

ColdBox Platform: http://www.coldbox.org
Linked In: http://www.linkedin.com/pub/3/731/483
Blog: http://www.luismajano.com
IECFUG Manager: http://www.iecfug.com

Social: twitter.com/lmajano facebook.com/lmajano

Are you using SES urls?


My initial test files came from here: http://www.aliaspooryorik.com/blog/index.cfm/e/posts.details/post/my-coldbox-mxunit-setup-300

My initial test method does nothing more than run getCurrentTemplatePath(). From the error message, it seems like it can’t find the component being tested. So there’s a path wrong someplace. I can run the url to the RemoteFacade.cfc?wsdl just fine though.


Is the remote facade you are calling in the mxunit directory, or your application?

It’s in myapp/tests/ not in the mxunit dir.