Fixing path of missing directory

There are some directories of my repository missing in the Codecov UI.

Could you give me an example about how to fix the path?

This instruction is really not clear for me :neutral_face:. Path Fixing help me out, please!

Hi @ndsanchez

Can you share a commit SHA so I can check the raw report and assist?

Sure @drazisil

Commit: https://gitlab.com/fluidattacks/integrates/-/merge_requests/4629

Codecov Analysis: Codecov

This isn’t a path fixing issue. What you need to to be able to have the full path in the filername value of the report. You can see GitHub - codecov/python-standard: Codecov coverage standard for Python for an example of how to configure this.

I see, but I don’t understand why Codecov is not tracking all my files?

Do you have any idea?

Hi @ndsanchez, it’s because we are not receiving coverage metrics for those files. You’ll see in the report https://codecov.io/codecov/v4/raw/2020-03-02/4EA0CDF74CF8F1E27CCEAA30ECF8D5A3/d09e9ee77912115eeb29aed0130c954cc9a1ab38/465c913c-43e8-4574-9f84-6482d17d63ac.txt (before EOF) that Codecov only receives coverage for a few files. We cannot make assumptions on coverage for files that aren’t included here.

I took a look at how to do this in Jest, let me know if this helps: Jest Coverage All Files · Issue #1211 · facebook/jest · GitHub


I changed the pattern to find the files and it works now. Here is my setup.

  collectCoverageFrom: [
    'src/**/*.{js,vue}',
    '!**/node_modules/**',
    '!**/vendor/**',
  ],