I try to run flaky test with espresso framework (and with Junit4) on Android Studio.
I want to set how many times it should to repeat. Before I can use
@FlakyTest(tolerance=5)
// (5 is number for repeat, for example)
But this annotation was deprecated in API level 24. - (link on android.developers.com)
I need to set how many times test can be repeated, but don't know how to do it. Any idea?