Christopher Williams wrote:
> murphee,
>  I just ran a quick smoke test on launching a Test::Unit testcase and I
> didn't see the problem you're mentioning. Can you send along the file
> (and
> make sure you're using the latest from svn).
Yes, I'm using the latest version from svn.
What does your smoke test look like?

I created a new Test::Unit launch (in the LaunchConfiguration dialog)
and ran that - from stepping through the code, I found the problem in:
org.rubypeople.rdt.launching.RubyLaunchDelegate.launch(ILaunchConfiguration
configuration, String mode, ILaunch launch, IProgressMonitor monitor)
in line 51:
String mainTypeName = verifyFileToLaunch(configuration);
This returns null, because:
TestUnitLaunchConfigurationDelegate
.getFileToLaunch(ILaunchConfiguration configuration)
       String mainType = configuration.getAttribute( 
IRubyLaunchConfigurationConstants.ATTR_FILE_NAME,(String) null);

returns null, because the LaunchConfiguration tab hasn't set the
IRubyLaunchConfigurationConstants.ATTR_FILE_NAME value.

Do you get this behavior?
I fixed it (for me) by setting the
IRubyLaunchConfigurationConstants.ATTR_FILE_NAME in the setDefaults
method in the LaunchConfiguration tab;

murphee


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Rubyeclipse-development mailing list
Rubyeclipse-development@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rubyeclipse-development

Reply via email to