準備
テストプロジェクトの準備
Eclipse ADTまはたAndroid Studio
テスト環境の準備
- 混乱を避けるために、端末のアニメーションをOFFにすることを強く推奨。
- 以下の画像の箇所をOFFに
http://wiki.android-test-kit.googlecode.com/git/developer_settings.png
Espresso セットアップ手順書
- テストプロジェクトを作成
- libフォルダを作成
- jarをlibフォルダに追加
- AndroidManifestに以下を追加。下記URLはサンプル
https://code.google.com/p/android-test-kit/source/browse/espresso/libtests/AndroidManifest.xml
<instrumentation android:name="com.google.android.apps.common.testing.testrunner.GoogleInstrumentationTestRunner" android:targetPackage="com.google.android.apps.common.testing.ui.testapp" />