ฉันได้รับข้อผิดพลาดนี้ทุกครั้งที่พยายามสร้างรายงานความครอบคลุม:
Instrumentation run failed due to 'Process crashed.'
com.android.builder.testing.ConnectedDevice > No tests found.[Pixel 2 - 8.1.0] FAILED
No tests found. This usually means that your test classes are not in the form that your test runner expects (e.g. don't inherit from TestCase or lack @Test annotations).
ฉันแก้ไข repo ตัวอย่างเพื่อสร้างปัญหาอีกครั้ง: https://github.com/suarezjulian/unified-code-coverage-android
เพียงดาวน์โหลดและดำเนินการ:
./gradlew jacocoTestReport