Replies: 1 comment
-
@elringus thanks for raising this! I'm converting this issue to a discussion so as to bring this issue to a broader audience so we can collect feedback on this |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
What product do you want to improve?
Not sure. Probably both Uploader and Web application.
Is your feature request related to a problem? Please describe.
I’m covering code generated on build, which is not checked into git.
The code is not known at compile time and has to be generated on build (hence it can’t be checking in git), but still needs to be tested and covered; I believe that’s a fair use case.
Everything works fine locally and on CI: I can test and generate coverage report for the generated code (vitest command: https://github.com/Elringus/DotNetJS/blob/feat/revamp/JavaScript/package.json#L4). But codecov ignores the report, because the covered files are not in git.
Describe the solution you'd like
Codecov will pick coverage for files not checked with git, respect their coverage in the context of the total solution coverage and display the files on the webapp.
The non-git files may be marked as virtual/generated and don't have link to github repo.
Describe alternatives you've considered
My current workaround is to throw an error when coverage is below 100%, but I really wish codecov could support generated files.
Additional context
Migrated from https://community.codecov.com/t/covering-auto-generated-files-not-checked-into-git/4508
Beta Was this translation helpful? Give feedback.
All reactions