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:. https://docs.codecov.io/docs/fixing-paths 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: https://codecov.io/gl/fluidattacks/integrates/commit/d09e9ee77912115eeb29aed0130c954cc9a1ab38

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 https://github.com/codecov/python-standard 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: https://github.com/facebook/jest/issues/1211#issuecomment-559561044


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

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