Coverage reporting unnecessary for several build stages?
rmjordas opened this issue · comments
The CI will run at least three (3) jobs for a specific build (more depending on the type, i.e. branch
, pull_request
, etc.):
npm run typecheck
npm run lint
npm test
But if any of them is successful, the will still push a report via the codecov
package. This is an example for Job #822.1
which simply runs npm run typecheck
:
Notice the part where it says:
==> Scanning for reports
X Failed to read file at
It didn't see any report because npm test
was not run in this stage.
So, I think this is the reason why we have this:
@roymoran Will coverage reporting still work if we just run the codecov
only on the stage that runs npm test
?
yeah you're right. it doesn't find the generated coverage report because those other stages/jobs don't run the test step. I'm working on adding the app version to the footer now and will make an adjustment to the travis file on that PR.