Skip to content

Android "viewModelScope.launch" block partially covered for Kotlin 1.4.20 #1126

@ugurcany

Description

@ugurcany

Steps to reproduce

  • JaCoCo version: 0.8.6.202009150832
  • Operating system: MacOS
  • Steps: I'm using jacoco tool for code coverage reporting in my Android project. After I incremented the Kotlin version from 1.4.10 to 1.4.20, jacoco reports started showing coverages for viewModelScope.launch { ... } blocks as "partially covered". Whereas in version 1.4.10, they were fully covered.

Expected behaviour

viewModelScope.launch { ... } should be marked as fully covered by jacoco for Kotlin 1.4.20.

Actual behaviour

Jacoco report says "2 of 3 branches missed" forviewModelScope.launch { ... } block. So it's only partially covered:

image

Metadata

Metadata

Assignees

Type

No type

Projects

Status

Done

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions