# Kotlin files in Jacoco report only shows when path matches declared package

**URL:** <https://community.codecov.com/t/kotlin-files-in-jacoco-report-only-shows-when-path-matches-declared-package/180>\
**Category:** Bug Fixes\
**Tags:** java\
**Created:** [May 4, 2019, 3:42pm UTC](https://community.codecov.com/t/kotlin-files-in-jacoco-report-only-shows-when-path-matches-declared-package/180 "2019-05-04T15:42:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mleegwt](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/mleegwt/32/715_2.png) [@mleegwt](https://community.codecov.com/u/mleegwt)\
**Post date:** [May 4, 2019, 3:42pm UTC](https://community.codecov.com/t/kotlin-files-in-jacoco-report-only-shows-when-path-matches-declared-package/180/1 "2019-05-04T15:42:13Z")

</div>

In Kotlin the style to put the code file exactly where the package is no longer is convention. The Codecov report does not show such a file. The jacoco report includes it. E.g. /src/main/kotlin/hello.kt with contents  
package com.hello.world

fun hello() = “world”

With a test that includes JUnit Assert.assertEquals(“world”, hello()) will not be visible in codecov.

### Description of the issue

### Repository

The effects are visible in [Moved Kotlin files to packages by mleegwt · Pull Request #34 · mleegwt/ExternalAlarmClock · GitHub](https://github.com/mleegwt/ExternalAlarmClock/pull/34)

### Steps to Reproduce

**Expected behavior:** All kotlin source from the jacoco report is visible

**Actual behavior:** kotlin source is only visible when path matches the package declaration.

**Flakiness?** No

### Versions

Viewing codecov reports on iPad in safari on iOS 12

### Additional Information

N/a

---

<div class="post-metadata">

**Author:** ![mleegwt](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/mleegwt/32/715_2.png) [@mleegwt](https://community.codecov.com/u/mleegwt)\
**Post date:** [May 4, 2019, 3:51pm UTC](https://community.codecov.com/t/kotlin-files-in-jacoco-report-only-shows-when-path-matches-declared-package/180/2 "2019-05-04T15:51:02Z")

</div>

The pull request used as an example shows that matching the package declaration with the path results in the source being visible in the report.

---

<div class="post-metadata">

**Author:** ![hootener](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/hootener/32/15_2.png) [@hootener](https://community.codecov.com/u/hootener)\
**Post date:** [June 4, 2019, 3:27pm UTC](https://community.codecov.com/t/kotlin-files-in-jacoco-report-only-shows-when-path-matches-declared-package/180/3 "2019-06-04T15:27:53Z")

</div>

Thank you for the report. Is this a problem that could be resolved on the user end simply by fixing paths?

> **[Path Fixing](https://docs.codecov.com/docs/fixing-paths)**
>
> Introduction For Codecov to operate correctly, all file paths in the coverage report must match the git file structure. This approach is how Codecov is able to correctly map coverage information in your uploaded coverage reports to the corresponding...
