Use in android studio
まだ誰も着手していません。
- 主要言語
- Java
- スター
- 1.3k
- フォーク
- 752
- 平均マージ
- 6日 21時間
- マージ済み PR(30日)
- 8
説明
What I am trying to do is to use it directly as Robolectric unit tests in Android Studio. The problem comes when I create a new AndroidDriver():
new AndroidDriver(new URL("http://0.0.0.0:4723/wd/hub"), capabilities);
The selenium driver uses the apache-http client which in Android is not complete so there are missing classes from the preloaded one. My next step is to use Jarjar to stitch together a new version of http client in the Android SDK jar.
Not sure if it worths the pain, but I would like to discuss if this sounds like a good idea (fake the UI tests as unit tests)?
A different option is of course to create a different project only to test the apk.
Fyi piece from my .gradle:
testApt 'com.squareup.dagger:dagger-compiler:1.2.2'
testCompile 'com.squareup.dagger:dagger:1.2.2'
testCompile ('io.appium:java-client:2.2.0'){
exclude module: 'guava'
exclude module: 'httpmime'
exclude module: 'gson'
}
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
issue に記載されている Android Studio/Robolectric のセットアップから始め、新しい AndroidDriver URL と Gradle の依存関係を含めて確認します。不完全な Apache HTTP client クラスと提案されている Jarjar アプローチを調査し、その後、別個の APK テストプロジェクトと比較します。再現可能なアプローチを決定するか、制限事項を文書化できれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- android, java
- 領域
- mobile, testing
- issue の種類
- 機能追加
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 活発さ
- 停滞
- 明瞭さ
- 説明が足りない
- 初心者へのやさしさ
- 20/100