Skip to content

Cookbook

Nico Küchler edited this page Jun 14, 2016 · 10 revisions

Basic Espresso recipes

[Dummy launcher](Recipe Dummy Launcher)

Back press on your start activity would close app and fail test. Avoid that your app get closed. [more ...](Recipe Dummy Launcher)

[Wait for execution](Recipe Wait for execution)

Espresso waits until UiThread and AsyncTask operations are ready but not for simple threaded operations. Make Espresso wait with Idling Resources. [more ...](Recipe Wait for execution)

[Test Module](Recipe Test Module)

Instrumentation tests can be divided in separate modules. So you can have different tests for different flavours and build types. [more ...](Recipe Test Module)

Espresso Macchiato recipes

[Take screenshots](Recipe Take screenshots)

Take screenshots for documentation or capture the current state when a test is failing. [more ...](Recipe Take screenshots)

Clone this wiki locally