Codecov ignores the main files but includes the test files


Hi, I’m trying to setup codecov for the first time but I’m having troubles. It is showing only the test files, the main files are being ignored:

I tried so many things but I’m running out of ideas and search results.

The coverage report generated at GitHub Actions is attached in the action:


The project is brand new, I’m setting up all the environment before writing the classes. I made some dummy classes to test codecov. Please see the setup branch, master has only the initial commit right now


Please provide which CI/CD you are using


Please provide which uploader you are using and command used to run it. If you are not using the bash uploader, we recommend switching to it before opening an issue here.

I’m using GitHub workflows:

Commit SHAs

Please include the commit SHA(s)

Codecov YAML

Please include the codecov.yml as code

Empty, but I tried with the content below but without progress:

  - "::src/main/kotlin/"


  - "::dummy/"

Codecov Output

Please provide the full output of running the uploader on your CI/CD

 / ____|        | |
| |     ___   __| | ___  ___ _____   __
| |    / _ \ / _` |/ _ \/ __/ _ \ \ / /
| |___| (_) | (_| |  __/ (_| (_) \ V /
 \_____\___/ \__,_|\___|\___\___/ \_/

==> GitHub Actions detected.
    project root: .
    Yaml found at: .codecov.yml
    -> Found 1 reports
==> Detecting git/mercurial file structure
==> Reading reports
    + ./build/reports/jacoco/test/jacocoTestReport.xml bytes=6490
==> Appending adjustments
    + Found adjustments
==> Gzipping contents
==> Uploading reports
    query: branch=setup&commit=ea3f533237ec1d4e7aaaee78d50ebad7d7d7141a&build=120592128&
    -> Pinging Codecov
    -> Uploading
    -> View reports at

Additional Information

Any additional information, configuration or data that might be necessary to reproduce the issue.

Everything is public in the repository

Yay! I finally discovered the issue!

Codecov does not support the Kotlin feature which let us put Kotlin files anywhere. My files were directly at src/main/kotlin and were skipping the unnecessary boilerplate directory structure.

After moving them to the same dir structure as their package, codecov detected the files. That might be fixable with some settings, provably the fixes somehow, the one which I was twerking

1 Like

Amazing! Thanks for replying back with your solution @joserobjr.