2018 Copyright. All Rights Reserved. The Sponsored Listings displayed above are served automatically by a third party. Neither the service provider nor the domain owner maintain any relationship with the advertisers. In case of trademark issues please contact the domain owner directly (contact information can be found in whois). Privacy Policy
執筆時点(2014/04/07)の環境、バージョン等 AndroidStudio 0.5.4 JUnit 4.11 Android-JUnit4 0.3 Espresso 1.1 (mockitoと併用するときはdependencies版を使いましょう) 1.はじめに Android開発でAndroidでJUnit4を使う方法の設定を行うとJUnit4を使ったテストを実装できます。 が、上記リンク先の設定を行うと今度はJUnit3.8系(Android SDKに含まれている)で記述したテストやGoogle製UIテストフレームワーク"Espresso"が動かなくなります。(TestRnnerが異なるため) Espressoを使用したかったので、併用する方法を調べました。 gradleをよく知らなかったのでめちゃくちゃ時間がかかった...。 2.結論 JUnit4用、Espresso用のfla
JakeWharton/gradle-android-test-plugin がDEPRECATEDになってたのですが、いつの間にかrobolectric本家がfork(robolectric/gradle-android-test-plugin)してたので使い方をまとめおきます。 robolectric/deckard-gradle をシンプルにした感じです。 設定 プロジェクト/build.gradle buildscript { repositories { mavenCentral() } dependencies { classpath 'com.android.tools.build:gradle:0.9.+' // 追加 classpath 'org.robolectric.gradle:gradle-android-test-plugin:0.9.+' } } ... プロ
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く