[jvm] better error message when a test exists in a transparent package
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 45/100
Hướng nghiên cứu
Tái hiện lỗi từ ParsedFormsTest.kt và truy vết việc tra cứu mã nguồn qua SnapshotFileLayoutJUnit5.kt và SnapshotSystemJUnit5.kt. Xác định cách các package trong suốt được xử lý, sau đó làm cho lỗi giải thích rõ hơn về mã nguồn bị thiếu và xác minh thông báo kết quả bằng test bị ảnh hưởng.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
selfie.* is transparent, so if a test is there, it fails like this:
org.opentest4j.AssertionFailedError: Couldn't find source file for CallLocation(clazz=org.junit.runners.model.FrameworkMethod$1, method=<unknown>, fileName=FrameworkMethod.java, line=-1), looked in TypedPath(absolutePath=/home/runner/work/diffplugdotcom/diffplugdotcom/server/src/test/java/) and [/home/runner/work/diffplugdotcom/diffplugdotcom/server/src/test/resources], maybe there are other source roots?
at app//com.diffplug.selfie.junit5.FSJava.assertFailed(SnapshotSystemJUnit5.kt:57)
at app//com.diffplug.selfie.junit5.FSJava.assertFailed(SnapshotSystemJUnit5.kt:43)
at app//com.diffplug.selfie.guts.FS.assertFailed$default(SnapshotSystem.kt:96)
at app//com.diffplug.selfie.junit5.SnapshotFileLayoutJUnit5.sourcePathForCall(SnapshotFileLayoutJUnit5.kt:44)
at app//com.diffplug.selfie.guts.CommentTracker.hasWritableComment(CommentTracker.kt:36)
at app//com.diffplug.selfie.junit5.SnapshotSystemJUnit5.sourceFileHasWritableComment(SnapshotSystemJUnit5.kt:90)
at app//com.diffplug.selfie.Mode.canWrite$selfie_lib(Mode.kt:32)
at app//com.diffplug.selfie.SelfieImplementationsKt.checkSrc(SelfieImplementations.kt:285)
at app//com.diffplug.selfie.SelfieImplementationsKt.access$checkSrc(SelfieImplementations.kt:1)
at app//com.diffplug.selfie.StringSelfie.toBe(SelfieImplementations.kt:206)
at app//selfie.ParsedFormsTest.toMd(ParsedFormsTest.kt:16)
- Ngôn ngữ chính
- Kotlin
- Star
- 101
- Fork
- 18
- Merge trung bình
- 6 ngày 11 giờ
- Pull request đã merge (30 ngày)
- 5
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 diffplug/selfie
-
Selfie JVM Snapshot Garbage Collection is overly zealous when using multiple test suites in gradle Đang mởbug jvm
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
-
enhancement jvm
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
-
bug jvm
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
-
bug docs jvm
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 50/100
-
bug jvm py
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 48/100
Tất cả issue của diffplug/selfie
Issue tương tự
-
[Bug] 统计页面无法重置token和汇率 Đang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
AAswordman/Operit#1265 · 3 bình luận ·
-
The extension stopped working. Đang mởSource is down
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
keiyoushi/extensions-source#19317 ·
-
Tambahkan bahasa Indonesia Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
acristescu/OnlineGo#216 ·
-
Remove custom segment colors Đang mởenhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
libre-tube/LibreTube#8803 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100