Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jdt-dev] JUnit Plug-in test bug

Ricardo,

it's not just org.junit. As said before, check whether those two plug-in
have different dependencies. Also verify that MyTest compiles in both
plug-ins and that there are no errors in .log (the one which is in the
workspace specified by the launch configuration). Please continue the
discussion in the newsgroups.

Dani


                                                                           
             Ricardo Garcia                                                
             <rickystreambase@                                             
             yahoo.com>                                                 To 
             Sent by:                  jdt-dev@xxxxxxxxxxx                 
             jdt-dev-admin@ecl                                          cc 
             ipse.org                                                      
                                                                   Subject 
                                       Re: [jdt-dev] JUnit Plug-in test    
             18.01.2005 20:00          bug                                 
                                                                           
                                                                           
             Please respond to                                             
             jdt-dev@eclipse.o                                             
                    rg                                                     
                                                                           
                                                                           





My Dependencies tab for the plugin.xml viewer includes
org.junit as a required plugin.  Is this what you
meant by check the required section of the plugin.xml?


I still get the same error when I run via the package
explorer context menu(by right clicking on the file in
the package explorer View).

When I run MyTest with JUnit in 'core', it finds the
test just fine, however these tests depend on some of
the eclipse plugin architecture and (to my
understanding) need to be run as JUnit Plugin tests in
order to run properly.

A better question may be, what can possibly cause the
error message, 'no tests found',  given that other
plugins can find the tests running as a JUnit Plugin
test just fine, and regular JUnit tests work in every
plugin?

It may well be that my team set some attribute of
eclipse while building our product that may have
caused  the core plugin to become unusable for running
JUnit plugin tests?

But the error message just doesnt make much sense
given that that it works everywhere else except for
the core plugin, yet the core plugin includes
org.junit in its dependency list like all the other
plugins.

thanks,
Ricardo
--- Daniel Megert <daniel_megert@xxxxxxxxxx> wrote:

> Ricardo,
>
> the different plug-in  might well be the problem:
> check the required
> section of your plugin.xmls. Also, try to run your
> test directly from the
> Package Explorer: select it and then from the
> context menu select: Run As >
> Junit Plug-in Test.
>
> Dani
>
>
>
>
>              Ricardo Garcia
>
>              <rickystreambase@
>
>              yahoo.com>
>                    To
>              Sent by:
> pde-dev@xxxxxxxxxxx,
>              jdt-dev-admin@ecl
> jdt-dev@xxxxxxxxxxx
>              ipse.org
>                    cc
>
>
>
>               Subject
>              17.01.2005 18:47          [jdt-dev]
> JUnit Plug-in test bug
>
>
>
>
>              Please respond to
>
>              jdt-dev@eclipse.o
>
>                     rg
>
>
>
>
>
>
>
>
>
> I can't run test MyTest in my 'core' plugin, but
> when
> I move it to my 'application' plugin(plugin that
> invokes my GUI), it works just
> fine.
>
> The only variable that I know of is which plugin
> package the test is in.
>
> When I run in core I get the following error
> junit.framework.AssertionFailedError: No tests found
> in com.ide.core.MyTest
>
> I've checked the plug-in dependencies in core and it
> uses org.junit as does the 'application' plugin.
>
> I've sent this to newsgroups such as
> eclipse.jdt.tools
> and not received any response.  I feel like this
> might
> be a bug given the lack of documentation on how to
> run
> tests for a commercial plugin with a multi-package
> architecture.
>
> When you have more than one plugin package does one
> become the default for running the tests?  I'm
> trying
> not to be a dumb user, but I've fiddled around and
> referenced numerous books to no avail.  If someone
> could point me in the right direction it would be
> very
> helpful.
>
> thanks
> ricky
>
>
>
>
>
>
>
>
> __________________________________
> Do you Yahoo!?
> Meet the all-new My Yahoo! - Try it today!
> http://my.yahoo.com
>
>
> _______________________________________________
> jdt-dev mailing list
> jdt-dev@xxxxxxxxxxx
> http://dev.eclipse.org/mailman/listinfo/jdt-dev
>
>
> _______________________________________________
> jdt-dev mailing list
> jdt-dev@xxxxxxxxxxx
> http://dev.eclipse.org/mailman/listinfo/jdt-dev
>


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
_______________________________________________
jdt-dev mailing list
jdt-dev@xxxxxxxxxxx
http://dev.eclipse.org/mailman/listinfo/jdt-dev




Back to the top