How to get Spoon to take screenshots for Espresso tests?
I've been trying to follow the instructions on getting Spoon 1.1.14 to take screenshots for failing Espresso tests . What's the best way to configure this with a custom Espresso FailureHandler ? Here's how I am doing this at the moment: public class MainScreenTest extends BaseStatelessBlackBoxEspressoTest<LaunchActivity> { public MainScreenTest() { super(LaunchActivity.class); } public void testMainScreen() { // Unfortunately this must be explicitly called in each test :-( setUpFailureHandler(); onView(withId(R.id.main_circle)). check(matches(isDisplayed())); } } My base Espresso test class