liudonghua123 / android-test-kit

Automatically exported from code.google.com/p/android-test-kit
0 stars 0 forks source link

Enhancement: FlakyTest for JUnit4/Espresso #153

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Would love to see a version of 
http://developer.android.com/reference/android/test/FlakyTest.html compatible 
with both the Android JUnit4 runner and Espresso. 

What steps will reproduce the problem?
1. Run tests annotated with @FlakyTest using the AndroidJUnit4 runner
2. Tests which are marked with this annotation fail without being retried.

What is the expected output? What do you see instead?
I would like those tests to be retried the number of times provided in the 
annotation.

What version of the product are you using? On what operating system?
Android Studio 1.2.1.1 on OS X 10.10.3

Please provide any additional information below.
I'm not sure if it's an issue of espresso or the JUnit 4 runner, but it'd be 
really nice to be able to try UI tests more than once as they flake 
considerably more often than other tests. 

Original issue reported on code.google.com by designat...@gmail.com on 14 May 2015 at 7:03

GoogleCodeExporter commented 9 years ago

Original comment by slinz...@google.com on 9 Jun 2015 at 2:46

GoogleCodeExporter commented 9 years ago

Original comment by slinz...@google.com on 9 Jun 2015 at 2:47