Tuesday, May 25, 2010

[android-developers] Re: JUnit failing with warning - ""test class not found in selected project"

I am facing a similar problem. My output after the test is ran is:

junit.framework.TestSuite$1:
Test results for ContentProviderSuite

It seems that the JUnit framework is not able to find the tests inside
the test class. I even built a specific TestSuite to put inside there
just the test class that I want to run, but even with this, I get the
same output.

Could anyone check ProviderTestCase2 to see if it is faulty, please?
It is great to have test support inside Android, but these kind of
issues get in the way during development.

Regards

Felipe

On Apr 28, 10:44 am, paulkeogh <paul.ke...@gmail.com> wrote:
> Env:
>
> Eclipse 3.5, Android 0.9.6, Windows XP SP2
>
> Using the Android New project wizard I create a project and a test
> project.
>
> Add a simple test to test project extending AndroidTestCase - works
> fine.
>
> Add another test to test project extending ProviderTestCase2 - fails.
> the JUnit view shows a green bar but with a warning node under the
> junit.framework.TestSuite1 node.
>
> When I click on the warning node I see - "test class not found in
> selected project"
>
> This is all out of the box - no changes made to the underlying
> environment. No useful output in either the Console or LogCat view.
>
> Any suggestions ?
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscribe@googlegroups.com
> For more options, visit this group athttp://groups.google.com/group/android-developers?hl=en

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment