DataDog / datadog-ci-rb

Ruby library for Datadog test visibility
https://docs.datadoghq.com/continuous_integration/tests/ruby
Other
8 stars 4 forks source link

[SDTEST-301] add source location info to test suites #239

Closed anmarchenko closed 1 month ago

anmarchenko commented 1 month ago

What does this PR do? Adds test.source.file, test.source.start, test.codeowners tags to test suites reported to Datadog

Motivation We want to show source locations for test suites and attach codeowners to test suites

How to test the change? Unit tests are provided

RSpec (tested using rubocop):

image

Minitest (tested using feedbin):

image

Cucumber (tested using middleman):

image
codecov-commenter commented 1 month ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 98.95%. Comparing base (f3d84e6) to head (c1fdf81). Report is 4 commits behind head on main.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #239 +/- ## ======================================= Coverage 98.95% 98.95% ======================================= Files 273 273 Lines 13381 13404 +23 Branches 601 606 +5 ======================================= + Hits 13241 13264 +23 Misses 140 140 ``` | [Flag](https://app.codecov.io/gh/DataDog/datadog-ci-rb/pull/239/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=DataDog) | Coverage Δ | | |---|---|---| | [](https://app.codecov.io/gh/DataDog/datadog-ci-rb/pull/239/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=DataDog) | `98.95% <100.00%> (+<0.01%)` | :arrow_up: | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=DataDog#carryforward-flags-in-the-pull-request-comment) to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.