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.



import android.test.ActivityInstrumentationTestCase2;

public class TestCartView extends
                ActivityInstrumentationTestCase2<myActivity> {

        Activity myActivity ;
        public TestCartView() {
                super("", 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 {



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)



Sponsored Links

Other Threads

1. Compiled code size of ralink wifi driver too huge

Hi Android porters,

I am trying to port ralink wifi rt2870sta.ko into Android v2.1. After
compiling the driver with arm-eabi-gcc, the code size of rt2870sta.ko
came up to 9Mbyte. This is too large. When I compiled using the normal
PC gcc on Ubuntu 10.04, the code size is about 700kbyte.

Is this normal behavior?

Thank you.


2. Android porting with goldfish qemu

Hello Everyone.

I want to make Android porting but I can't go further

so I ask you an advice.

I have done,

downloaded Froyo 2.2 -> make

downloaded kernel goldfish -> make

so I built two of them.

but I can't find any further information about porting,

blogs just say you can make porting environment like that and then
what? no one says about the next.

As I know, I can port Android using goldfish kernel (which is called
qemu, right?)

without any real target device or board.

Don't know what to do next,

if you know anything , plz teach me or give me some references

so I can figure out myself.

Thank you for reading my poor question.


3. Scrollbar not working

4. Toko android di cempaka mas

5. Devices not detected

6. Robot Ijo "Dance"

7. M-toyota for android