Error: Test instrumentation process crashed. But there is no /files/ directory
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 25/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Cần làm rõ
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- java
- Lĩnh vực
- mobile-dev, testing
Hướng nghiên cứu
Tái hiện bài kiểm thử trình giả lập với cấu hình AndroidX Test Orchestrator 1.1.1 được liệt kê và kiểm tra lỗi được báo cáo trong checkQuitDialog.txt. So sánh đường dẫn /data/data/androidx.test.orchestrator/files/ dự kiến với các thư mục /cache và /cache_code hiện có; hoàn tất nghĩa là xác định được nguyên nhân của sự cố hoặc ghi lại chẩn đoán còn thiếu cần thiết để làm việc đó.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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!
- Ngôn ngữ chính
- Java
- Star
- 9.3k
- Fork
- 3.6k
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của android/testing-samples
-
Organic* Đang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 1/100
android/testing-samples#542 ·
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 1/100
android/testing-samples#541 ·
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 10/100
android/testing-samples#538 · 1 bình luận ·
-
testingsms- deployment Đang mở
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 10/100
android/testing-samples#537 · 1 bình luận ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 30/100
android/testing-samples#528 ·
Tất cả issue của android/testing-samples
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
elastic/gradle-plugins#157 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
cryptomator/hub#497 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
johanhaleby/occurrent#1120 ·