Best practices for per-platform + cross-platform coverage ? #560
-
So, I have a project with a lot of cross-platform code and a bit of platform-specific code. I'm testing coverage on both Linux and Windows, in two separate CI jobs, and I would like to have both a report of lines covered on each platform, and a report of all lines covered by at least one platform. What would be the recommended way to do this? Right now, I'm doing one flag per platform, and it does eventually produce the result I'm interested in. But the GitHub action UX during a CI run is more than a little confusing because there is first a report of loss of coverage as the run for the first platform completes, then that report is later corrected as the run for the second platform completes. Also I think the codecov action status reports stays red even after this second run has completed, but that might be for unrelated reasons. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Check out
Can't comment on this one without seeing the repo, is it OSS? |
Beta Was this translation helpful? Give feedback.
Check out
after_n_builds
and set the field to "2" so that it always waits for both flags:https://docs.codecov.com/docs/pull-request-comments#after_n_builds-for-flags
Can't comment on this one without seeing the repo, is it OSS?