android / android/testing-samples

Error: Test instrumentation process crashed. But there is no /files/ directory

オープン
#244 コメント 23 件 リアクション 9 件 担当者 0 名 GitHub で見る
主要言語
Java
スター
9.3k
フォーク
3.6k
PR マージ指標
30日以内にマージされた PR はありません

説明

Hi all! I get this error
`Test instrumentation process crashed. Check my.long.package.activity#checkQuitDialog.txt for details`
But there is no /files folder in /data/data/androidx.test.orchestrator, only /cache and /cache_code. I run test on the Emulator

Prerequisites:
```
defaultConfig {
...
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
testInstrumentationRunnerArguments clearPackageData: 'true'
}
...
testOptions {
unitTests {
includeAndroidResources = true
returnDefaultValues = true
}
execution 'ANDROIDX_TEST_ORCHESTRATOR'
}
...
dependencies {
androidTestUtil 'androidx.test:orchestrator:1.1.1'
androidTestImplementation('com.schibsted.spain:barista:2.7.1') {
exclude group: 'com.android.support'
}
// Core library
testImplementation 'androidx.test:core:1.1.0'
androidTestImplementation 'androidx.test:core:1.1.0'

// Assertions
testImplementation 'androidx.test.ext:truth:1.1.0'
androidTestImplementation 'androidx.test.ext:truth:1.1.0'

// JUnit
testImplementation 'androidx.test.ext:junit:1.1.0'
androidTestImplementation 'androidx.test.ext:junit:1.1.0'

// JUnitRunner
testImplementation 'androidx.test:runner:1.1.1'
androidTestImplementation 'androidx.test:runner:1.1.1'

// Test helpers for LiveData
testImplementation 'android.arch.core:core-testing:2.0.0'
androidTestImplementation 'android.arch.core:core-testing:2.0.0'

// UI /test
androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.1'
androidTestImplementation 'androidx.test.espresso:espresso-contrib:3.1.1'
androidTestImplementation 'androidx.test.espresso:espresso-intents:3.1.1'
implementation 'androidx.test.espresso:espresso-idling-resource:3.1.1'
implementation 'com.jakewharton.espresso:okhttp3-idling-resource:1.0.0'

// Robolectric/Mockito
testImplementation 'org.robolectric:robolectric:4.1'
testImplementation 'org.mockito:mockito-core:2.23.4'
androidTestImplementation("org.mockito:mockito-core:2.23.4")
androidTestImplementation("org.mockito:mockito-android:2.23.4")

// Rest mock
testImplementation "com.squareup.retrofit2:retrofit-mock:$retrofitVersion"
testImplementation 'com.squareup.okhttp3:mockwebserver:3.12.1'
}
```
Thanks!

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

記載されている AndroidX Test Orchestrator 1.1.1 の構成でエミュレーターのテストを再現し、報告された checkQuitDialog.txt のエラーを調査します。想定される /data/data/androidx.test.orchestrator/files/ パスと、利用可能な /cache および /cache_code ディレクトリを比較します。完了条件は、クラッシュの原因を特定するか、そのために必要な不足している診断情報を文書化することです。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
java
領域
mobile-dev, testing
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
25/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。