Android and Junit reports Test run failed: No test results

by Conny » Fri, 16 Jul 2010 21:31:11 GMT


Sponsored Links
 Sorry people I am getting the reputation of solving my own issues :).

Fixed it. I just put in a default constructor and removed moved the
initializing of myActivity to the setup. It worked.

package com.sears.android.test;


import com.my.android.myActivity;

import android.app.Activity;
import android.test.ActivityInstrumentationTestCase2;

public class TestCartView extends
                ActivityInstrumentationTestCase2<myActivity> {

        Activity myActivity ;
        public TestCartView() {
                super("com.my.android.myActivity", myActivity.class);
        }
        public TestCartView(String pkg, Class<myActivity> activityClass) {
                super(pkg, activityClass);
        }

        protected void setUp() throws Exception {
                super.setUp() ;
                myActivity = super.getActivity() ;
        }

        public void testSomethingSilly() {
                assertNotNull(myActivity) ;
        }


        public void testSomethingSillier() {
                assertNotNull(myActivity) ;
        }

        protected void tearDown() throws Exception {
                super.tearDown();
        }

}





--



Android and Junit reports Test run failed: No test results

by Conny » Sat, 17 Jul 2010 01:34:53 GMT


 One more piece of information that is helpful here.

ActivityInstrumentationTestCase2(String pkg, Class<T> activityClass)
This constructor is deprecated. use
ActivityInstrumentationTestCase2(Class) instead
 ActivityInstrumentationTestCase2(Class<T> activityClass)
Creates an ActivityInstrumentationTestCase2.

Some examples use
ActivityInstrumentationTestCase2(String pkg, Class<T> activityClass)

Regards
Conny





--


Sponsored Links


Other Threads

1. Where are ADT eclipse plugin sources?

Hi,
I would like to see the implementation of Android Development Tool
(ADT) plugin for Eclipse, but I cannot find the sources in the
repository. Time ago, they where under [/platform/development.git] /
tools/eclipse.
Could you help me to find them? :)

Regards.

Juan.

-- 

2. VerticalScrollBar Size is never the same for the same screen

I forget the link

http://yfrog.com/0pdevice1ylpx




-- 

3. VerticalScrollBar Size is never the same for the same screen

4. Inconsistant naming for SDK 2.1

5. Maintaining a free and paid version & maybe other version

6. Any experienced Greystripe users?

7. Socket Rocket - Im losing my mind!