Command line parameters in JUnit plug-in test

View: New views
2 Messages — Rating Filter:   Alert me  

Command line parameters in JUnit plug-in test

by josh hes. :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I'm trying to test an eclipse plugin with JUnit from within eclipse.
We I try to run the test, the plugin I'm testing spits out, invalid
command line input, "-version".

But, I can't seem to find this command line argument anywhere.  It's
not in the run configuration for the test or for the plugin.  Where is
this coming from?  How do I get rid of it!?


Re: Command line parameters in JUnit plug-in test

by toalexsmail :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

--- In junit@..., "jbhester" <jbhester@...> wrote:
>
> I'm trying to test an eclipse plugin with JUnit from within eclipse.
> We I try to run the test, the plugin I'm testing spits out, invalid
> command line input, "-version".
>
> But, I can't seem to find this command line argument anywhere.  It's
> not in the run configuration for the test or for the plugin.  Where is
> this coming from?  How do I get rid of it!?
>
You can do the following trick. Run with debugger, click on the
execution thread (see the properties) and you will see the command
line that was used to run.

LightInTheBox - Buy quality products at wholesale price!