-
Notifications
You must be signed in to change notification settings - Fork 69
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature Request] Limit report to files which are in the diff #11
Comments
Thanks! Have you tried setting |
Oh! Obviously you had thought of that. Thanks |
Actually, I tried it, but the report has no files in it, despite the diff containing changed tests and files which those tests covered. |
Hey I noticed from a little digging that my issue here was that my coverage report was generated with One possible solution would be to parse the source(s) from the report xml and then explode the filepaths with the added source(s) (and maybe check to see if they exist in the repo?) so that the filtering here works correctly: I'd be happy to attempt a fix if you're happy with my proposal? This also may have nothing to do with Mike's problem.... For now I've changed my coverage::run::source to use ::omit instead of source, so the report is generated from the project root |
Any update on this issue? |
Bump, if the file names returned from Github don't match with the relative file names in the covertura.xml report, this is still broken. Would be great to fix. |
Same here, you already have |
Is this fixed? because I am facing the same issue. The comment does not include the changed files, but a single line for all files report. @Phil-Barber could you please explain more your workaround :) |
It's been a while but if I recall correctly: My workaround was to use the |
Thanks for your very helpful action. This is a feature request to limit the reporting comment to only files which were changed in the given PR. I think this should be doable if you check that the file path in the cobertura report is a substring of the file path of a file in the diff.
This would make the report much more useful, especially for larger projects, as it will help reviewers narrow down which coverage report lines are important.
The text was updated successfully, but these errors were encountered: