fac19 / work-in-progress

Weeks 11-13 Student Project
https://wip-app.netlify.app/
3 stars 0 forks source link

Codecov badge #135

Open jackherizsmith opened 4 years ago

jackherizsmith commented 4 years ago

We're so close :dizzy_face:

how do we take it from unknown to our staggering 60% recorded on Codecov.io?

glrta commented 4 years ago

The badge seems to be fine now.

Looking at the dashboard in codecov.io it seems the report in the backend is only scoped to the files that are being tested, rather than the whole project (you are testing really well the files that you are testing=) well done!). You might be able to include in your Jest config a 'collectCoverageFrom'.

glrta commented 4 years ago

Jack, I added this below on my local (api json) and it worked to scope codecov to all files, excluding coverage and node_modules:

"collectCoverageFrom": [
      "**/*.js",
      "!node_modules/**",
      "!coverage/**"
    ]

I also notice that both of your test scripts run in watch mode. This could be the problem when setting up Travis, as the test never cease to run and won't go to the next task.