bug in mxunit eclipse plugin

16 views
Skip to first unread message

kibaniwi

unread,
May 7, 2008, 5:45:04 AM5/7/08
to mxunit
Hi - I am trying out MXunit, great stuff so far. I have installed
mxUnit in a sub-folder of a virtual directory called 'devtools'. When
trying out the eclipse plugin, the error I got stated that it could
not find the 'interface or component evtools.mxunit.framework....'

When I created a cf mapping evtools which pointed to the devtools
folder, everything worked fine. Anybody know what happened to the 'd' ?

Marc Esher

unread,
May 7, 2008, 6:13:39 AM5/7/08
to mxu...@googlegroups.com
hey kibaniwi,
did you try setting the component root in the project properties for
your project in eclipse? if not, can you try that first.

If you have tried that, to no avail, can you start eclipse with the
-debug flag. Open the PDE Error view. then, try running your tests.
From there, you'll get a few new entries into the error table. they'll
have warning and information icons, not error icons. Then, copy them
and paste them back into this email.

thanks!

Marc

kibaniwi

unread,
May 7, 2008, 8:48:00 AM5/7/08
to mxunit
Hi Marc

Not sure if I understood all your instructions - ran eclipse in debug
mode, opened PDE error log, tried to refresh tests. I think the
relevant info you are looking for:
Info Starts here--->
eclipse.buildId=M20080221-1800
java.version=1.6.0_05
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_GB
Command-line arguments: -os win32 -ws win32 -arch x86 -debug

Info
Wed May 07 13:34:40 BST 2008
webroot is C:\inetpub\wwwroot; selectedResourceAsFile is C:
\webs2\websites\devtools\mxUnit\PluginDemoTests; componentRoot is ;
fileRelativeToRoot is mxUnit/PluginDemoTests

Then

Info
Wed May 07 13:34:40 BST 2008
TestSuiteCreator: Passing C:\webs2\websites\devtools\mxUnit
\PluginDemoTests to PathUtils.getTestComponents

Then

Info
Wed May 07 13:34:40 BST 2008
PathUtils.getTestComponents(), returning 12 files matching filter
string [test*.cfc, *test.cfc]

Then

Info
Wed May 07 13:34:40 BST 2008
MXUnit TestSuiteCreator: Adding Test To Suite: fullPath is C:
\webs2\websites\devtools\mxUnit\PluginDemoTests
\DoubleMethodTest.cfc;name
isevtools.mxUnit.PluginDemoTests.DoubleMethodTest

The above happens for each of the 12 test cfc's.

Then there are 12 of:

Error
Wed May 07 13:34:40 BST 2008
RemoteException in LoadMethodsAction

AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/
envelope/}Server.userException
faultSubcode:
faultString: coldfusion.xml.rpc.CFCInvocationException:
[coldfusion.runtime.CfJspPage$NoSuchTemplateException : Could not find
the ColdFusion Component or Interface
evtools.mxUnit.PluginDemoTests.DoubleMethodTest.]
faultActor:
faultNode:
faultDetail:
{http://xml.apache.org/
axis/}stackTrace:coldfusion.xml.rpc.CFCInvocationException:
[coldfusion.runtime.CfJspPage$NoSuchTemplateException : Could not find
the ColdFusion Component or Interface
evtools.mxUnit.PluginDemoTests.DoubleMethodTest.]
plus the usual stack trace.

The intriguing part to me is the: MXUnit TestSuiteCreator: Adding Test
To Suite: fullPath is C:\webs2\websites\devtools\mxUnit\PluginDemoTests
\DoubleMethodTest.cfc;name
isevtools.mxUnit.PluginDemoTests.DoubleMethodTest
Where it says name isevtools.mxUnit.x.x.x

I have no reference to evtools in any of the config, only devtools.

I haven't tried to reproduce this by running in a different sub folder
yet.

Thanks
> >  folder, everything worked fine. Anybody know what happened to the 'd' ?- Hide quoted text -
>
> - Show quoted text -

Marc Esher

unread,
May 7, 2008, 10:56:25 AM5/7/08
to mxu...@googlegroups.com
I see the problem.

In Window -- Preferences, select "MXUnit" on the left. in the "web
root" field, type c:\webs2\websites\ and hit OK.

that'll get the path resolving as devtools.mxunit....

now, the plugin demo tests won't work otu of the box because they
extend "mxunit.framework.TestCase", and on your machine the path to
mxunit will be devtools.mxunit.framework.TestCase. So the easiest way
to resolve this is to add a mapping into cfadmin for mxunit that
points to c:\webs2\websites\devtools\mxunit

then everything should work OK.

marc

kibaniwi

unread,
May 7, 2008, 11:50:52 AM5/7/08
to mxunit
Thanks Marc. Everything works as expected now. I guess the evtools vs
devtools was a red herring.
> >  > - Show quoted text -- Hide quoted text -

Marc Esher

unread,
May 7, 2008, 11:55:34 AM5/7/08
to mxu...@googlegroups.com
No problem. Have fun!
Reply all
Reply to author
Forward
0 new messages