

There is a top-level adle file if you want to build and test all samples from the root directory. gradlew test to run the unit test on your local host. gradlew connectedAndroidTest to run the tests on a connected emulator or device. gradlew assemble command or use "Import Project" in Android Studio. To build a project, enter the project directory and use the. These samples use the Gradle build system. ServiceTestRuleSample - Simple usage of ServiceTestRule Prerequisites IntentsBasicSample - Simple usage of IntentsTestRule **All previous samples use ActivityTestRule or IntentsTestRule but there's one specific to ServiceTestRule:īasicSample - Simple usage of ActivityTestRule UiAutomator SampleīasicSample - Basic UI Automator sample AndroidJUnitRunner SampleĪndroidJunitRunnerSample - Showcases test annotations, parameterized tests and testsuite creation JUnit4 Rules Sample MultiProcessSample - Showcases how to use multiprocess Espresso. WebBasicSample - Use Espresso-web to interact with WebViewsīasicSampleBundled - Basic sample for Eclipse and other IDEs

ScreenshotSample - Screenshot capturing and saving using Espresso and APIs RecyclerViewSample - RecyclerView actions for Espresso MultiWindowSample - Shows how to point Espresso to different windows IntentsAdvancedSample - Simulates a user fetching a bitmap using the camera IntentsBasicSample - Basic usage of intended() and intending() IdlingResourceSample - Synchronization with background jobs Espresso SamplesĬustomMatcherSample - Shows how to extend Espresso to match the hint property of an EditTextĭataAdapterSample - Showcases the onData() entry point for Espresso, for lists and AdapterViewsįragmentScenarioSample - Basic usage of FragmentScenario with Espresso. A collection of samples demonstrating different frameworks and techniques for automated testing.
