Questions tagged [android-jacoco]

22 questions
0
votes
0 answers

Android Jetpack Compose code coverage report with JaCoCo?

I want to create an XML code coverage report for my unit test, but it doesn't work... I followed this plugins instructions: https://github.com/arturdm/jacoco-android-gradle-plugin I created a sample empty project with 1 Unit Test in this…
CookieMonster
  • 566
  • 2
  • 6
  • 19
0
votes
1 answer

JaCoCo with Gradle Kotlin multi-module Android project - what does isTestCoverageEnabled actually do?

I'm configuring an Android multi-module Gradle project that uses Kotlin for both the app AND the Gradle build files (gradle.build.kts). I'm using Gradle 7.3.3. First I add the Jacoco plugin to the module-level build.gradle.kts: ... plugins { …
rob
  • 6,147
  • 2
  • 37
  • 56
0
votes
2 answers

Where to set the coverage runner in Android Studio Chipmunk?

In Android Studio 4.1.2, it can set the coverage runner for JaCoCo at but in Android Studio Chipmunk (2021.2.1), there is no place to choose JaCoCo as the coverage runner How to run the JaCoCo coverage test in Chipmunk? Update: As @Daya Nithi…
lannyf
  • 9,865
  • 12
  • 70
  • 152
0
votes
1 answer

Jacoco 1 of 4 branch is missing

I am using Jacoco to check the coverage of my test, i tried lots of way but it still warning 1 of 4 branches missed fun countingDeleteDemo() : Int { return list.count { it.isDeleted() } } How can I know what branch is missed? I have read some…
0
votes
1 answer

File filter in Jacoco android test coverage report not working as expected

I am trying to add Jacoco to my project for test coverage reporting. Referred the following blogs for…
Abhimanyu
  • 11,351
  • 7
  • 51
  • 121
0
votes
1 answer

merge report.xml generated by jacoco to one report

I have an android project with many modules, we run our unit tests in PRs just for changed modules, so our generated jacoco report is at the module level, but now I need a aggregated report, is it possible to merge all report.xml after…
max
  • 5,963
  • 12
  • 49
  • 80
0
votes
1 answer

Why coverage tool JaCoCo reports 100% coverage?

I added to my project JaCoCo by editing app level build.gradle: plugins{ ... id 'jacoco' } jacoco { toolVersion = "0.8.7" } buildTypes { debug { testCoverageEnabled = true } } android { //... } dependencies{ …
Ralf Wickum
  • 2,850
  • 9
  • 55
  • 103
1
2