sangmingming / robotium

Automatically exported from code.google.com/p/robotium
0 stars 0 forks source link

adb annotation command cannot execute on Android 1.6 to 2.1 correctly #174

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. In own test framework, define annotation like this:
package com.example.test.annotation;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

@Target({ElementType.METHOD, ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface Full {

}
2.Execute command like this on Android 1.6 to 2.1 phone
adb shell am instrument -w -e annotation com.example.test.annotation.Full 
com.example.test/android.test.InstrumentationTestRunner

What is the expected output?
It will only execute test cases belonged to Full annotation.

What do you see instead?
It executes all test cases in com.example.test.
Other test cases are not belonged to Full annotation are also executed.

What version of the product are you using? On what operating system?
Robotium 2.5

Please provide any additional information below.
The same command can be executed on Android 2.2 and 2.3 phone correctly.

Original issue reported on code.google.com by derek110...@gmail.com on 14 Oct 2011 at 9:34

GoogleCodeExporter commented 9 years ago
This is not a robotium issue. 

Original comment by renasr...@gmail.com on 14 Oct 2011 at 2:24

GoogleCodeExporter commented 9 years ago
So you mean it is Android issue, yes?
adb annotation command cannot execute on Android 1.6 to 2.1 correctly.

Original comment by derek110...@gmail.com on 17 Oct 2011 at 2:31