Skip to content

Instantly share code, notes, and snippets.

View venkata-kari's full-sized avatar

Venkata Kari venkata-kari

View GitHub Profile
@venkata-kari
venkata-kari / BeforeLoginActivityTest.java
Created May 2, 2017 14:17 — forked from adavis/BeforeLoginActivityTest.java
Using Screen Robots with Android Espresso Tests
package <your_package>;
import android.support.test.espresso.intent.rule.IntentsTestRule;
import android.support.test.runner.AndroidJUnit4;
import android.test.suitebuilder.annotation.LargeTest;
import org.junit.After;
import org.junit.Rule;
import org.junit.Test;
import org.junit.runner.RunWith;
apply plugin: 'com.android.application'
repositories {
maven { url "http://jzaccone.github.io/SlidingMenu-aar" }
}
android {
compileSdkVersion 22
buildToolsVersion "22.0.1"
<?xml version="1.0" encoding="utf-8"?>
<manifest
xmlns:android="http://schemas.android.com/apk/res/android"
package="com.novoda.espresso">
<!-- For espresso testing purposes, this is removed in live builds, but not in dev builds -->
<uses-permission android:name="android.permission.SET_ANIMATION_SCALE" />
<!-- ... -->