Hi Brett, You were right. My testing class didn't have its constructor made public. After I did that, everything went fine. Too bad that I missed this in the only ProviderTestCase2 I have in my test code, which made me think that this was a platform problem. Nice to hear that future releases will have better logging. Unit test support is really important to develop more stable applications and improve quality of the android apps we develop.
Thank you Felipe On May 25, 9:37 pm, Brett Chabot <[email protected]> wrote: > Note that Test classes must be public, and must have a default, public > constructor to be run. Unfortunately the froyo and older Android test > runner silently fails when the Test is not loaded for this reason, but > logging has been improved in future releases. > > Can you double check that your extension of ProviderTestCase2 defines a > public constructor? If it does and you are still having trouble, can you > please post the source of your test class. > > Regards, > Brett. > > On Tue, May 25, 2010 at 9:55 AM, Felipe Ramos <[email protected]>wrote: > > > 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 <[email protected]> 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 [email protected] > > > To unsubscribe from this group, send email to > > > [email protected]<android-developers%[email protected]> > > > 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 [email protected] > > To unsubscribe from this group, send email to > > [email protected]<android-developers%[email protected]> > > For more options, visit this group at > >http://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 [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

