DataDog / datadog-ci-rb

Ruby library for Datadog Test Optimization
https://docs.datadoghq.com/tests/setup/ruby/?tab=cloudciprovideragentless
Other
11 stars 4 forks source link

Reporting code coverage in PR #257

Closed aenand closed 1 week ago

aenand commented 1 week ago

Hello! I was looking over the Datadog report that gets written to a PR if the GitHub comments are allows for a given repository and noticed that code coverage is not reported. Is there a way for Datadog to report a difference in code coverage percentage between the default branch and a given branch in that comment?

anmarchenko commented 1 week ago

Hi! Thanks for your mesage!

It is supposed to work already in PR comments, so may be the coverage percentage doesn't get reported (or we don't have it for your default branch yet).

Do you see code coverage percentage info in Datadog UI?

aenand commented 1 week ago

Ah that might be it! It may not be on the default branch yet. I'll test that out and report back, thank you!