Skip to content

Commit

Permalink
add comment that tracing a test returns error if another test is curr…
Browse files Browse the repository at this point in the history
…ently active
  • Loading branch information
anmarchenko committed Nov 8, 2023
1 parent c60e824 commit d113122
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/datadog/ci.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ module Datadog
module CI
class << self
# Return a {Datadog::CI::Test ci_test} that will trace a test called `test_name`.
# Raises an error if a test is already active.
#
# You could trace your test using a <tt>do-block</tt> like:
#
Expand Down Expand Up @@ -61,6 +62,7 @@ def trace_test(test_name, service_name: nil, operation_name: "test", tags: {}, &
end

# Same as {#trace_test} but it does not accept a block.
# Raises an error if a test is already active.
#
# Usage:
#
Expand Down

0 comments on commit d113122

Please sign in to comment.