-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
How to get location of code coverage.dat files? #8217
Comments
Just noticed a different use case but similar problem. in the proto folders:
in BUILD.bazel
now I have to add the filegroup rule to every subfolder in the |
You could emit a build event protocol file during your test run(s). The coverage files generated during the run should be available in there. Just write a script to parse them out. |
Thank you :) I'll have a look at that. |
What would it take for the |
Hey @jinfwhuang, Jerrod from Codecov here, interested in supporting Bazel further, but need to know a bit more about the coverage.dat file and what it looks like. Can you send me a link or attach an example .dat file so we can see? cc: @codesuki |
@jerrode I made a, somewhat hacky, Bazel rule that works for us. I'll make it available soon. Regarding the example .dat file, do you have an email address where I could contact you? |
@codesuki thanks! jerrod [at] codecov.io please :) Interesting the files worked for a week and then stopped working. My initial guess is that the .dat uploaded file is being recognized as a coverage file by Codecov but then not processed (we see similar behavior in unique coverage files from Xcode --> .xccov). For checking this out, can you tell me the github org / repo in question so I can also investigate our logs? |
I made a simple example in the following. The goal would be able to so to speak, "call test coverage", within a rule's implementation. https://github.com/jinfwhuang/bazel-examples |
@jerrode I'm trying to upload bazel's |
Hey @devjgm, sorry for delayed response: No, at this time we do not support coverage.dat format. You can see our exhaustive list here. https://docs.codecov.io/docs/supported-report-formats#exhaustive-acceptable-report-formats I'd be interested in working with someone from the BazelBuild community to make it happen, though! Jerrod |
Hi there! We're doing a clean up of old issues and will be closing this one. Please reopen if you’d like to discuss anything further. We’ll respond as soon as we have the bandwidth/resources to do so. |
We are running codecov through bazel. (not sure this is the best way but seems ok)
Running locally it works:
But on the CI it doesn't work because bazel-out seems not to exist.
Is there any other way to get those files? By a query or rule?
I searched but couldn't find anything useful.
Best idea I have so far is querying for all tests and then build the file paths manually from that. Doesn't seem very neat though.
The text was updated successfully, but these errors were encountered: