android / android/testing-samples

Android ui test runs forever

Đang mở
#468 1 bình luận 0 reaction 0 người được giao Xem trên GitHub
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

Mô tả

```
> Task :app:hiltJavaCompileDebugAndroidTest NO-SOURCE
> Task :app:mergeDebugAndroidTestJavaResource
> Task :app:transformDebugAndroidTestClassesWithAsm
> Task :app:packageDebug
> Task :app:createDebugApkListingFileRedirect UP-TO-DATE
> Task :app:dexBuilderDebugAndroidTest
> Task :app:mergeProjectDexDebugAndroidTest
> Task :app:packageDebugAndroidTest
> Task :app:createDebugAndroidTestApkListingFileRedirect UP-TO-DATE
Connected to process 4667 on device 'xiaomi-redmi_note_9_pro-6ed84981'.

> Task :app:connectedDebugAndroidTest
Starting 1 tests on Redmi Note 9 Pro - 12
```

Tried to use dependency group

```
debugImplementation "androidx.test:monitor:1.6.1"
debugImplementation("androidx.fragment:fragment-ktx:1.4.1")
debugImplementation 'androidx.test:core-ktx:1.5.0'

debugImplementation 'androidx.test:rules:1.5.0'
debugImplementation 'androidx.test:runner:1.5.2'

debugImplementation("androidx.fragment:fragment-testing:1.4.1")


// also the newest versions

debugImplementation("androidx.fragment:fragment-ktx:1.5.5")
debugImplementation("androidx.fragment:fragment-testing:1.5.5")
```

also the same issue, run with terminal also gives nothing the process stuck at 96%

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Hướng nghiên cứu

Start by reproducing the hang at the connectedDebugAndroidTest task on the Redmi Note 9 Pro running Android 12, then inspect the listed AndroidX test and Fragment dependency declarations. Determine why the single test does not complete and verify that the UI test finishes successfully instead of remaining at 96%.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
android, java
Lĩnh vực
mobile, testing
Loại issue
Lỗi
Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Cần làm rõ
Mức phù hợp với người mới
25/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.