jacoco.gradle 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. apply plugin: 'jacoco-android'
  2. jacoco {
  3. toolVersion = "0.8.5"
  4. }
  5. tasks.withType(Test) {
  6. jacoco.includeNoLocationClasses = true
  7. }
  8. jacocoAndroidUnitTestReport {
  9. excludes += [
  10. '**/R.class',
  11. '**/R$*.class',
  12. '**/BuildConfig.*',
  13. '**/Manifest*.*',
  14. '**/*Test*.*',
  15. '**/*Fragment*.*',
  16. '**/android/databinding/*',
  17. '**/androidx/databinding/*',
  18. '**/*Binding*.*',
  19. '**/di/module/*',
  20. '**/*MapperImpl*.*',
  21. '**/*$ViewInjector*.*',
  22. '**/*$ViewBinder*.*',
  23. '**/BuildConfig.*',
  24. '**/*Component*.*',
  25. '**/*BR*.*',
  26. '**/Manifest*.*',
  27. '**/*$Lambda$*.*',
  28. '**/*Companion*.*',
  29. '**/*Module.*',
  30. '**/*Dagger*.*',
  31. '**/*MembersInjector*.*',
  32. '**/*_Factory*.*',
  33. '**/*_Provide*Factory*.*',
  34. '**/*Extensions*.*',
  35. '**/*$Result.*', /* filtering `sealed` and `data` classes */
  36. '**/*$Result$*.*'/* filtering `sealed` and `data` classes */
  37. ]
  38. }