Sha256: 337fc94653a27c318dc19ab119f99bc7fba91c5537447eb15f02f65d506c39d6

Contents?: true

Size: 495 Bytes

Versions: 2

Compression:

Stored size: 495 Bytes

Contents

# frozen_string_literal: true

require_relative "span"

module Datadog
  module CI
    # Represents a single part of a test run.
    # Could be a session, suite, test, or any custom span.
    #
    # @public_api
    class Test < Span
      # @return [String] the name of the test.
      def name
        get_tag(Ext::Test::TAG_NAME)
      end

      # Finishes the current test.
      # @return [void]
      def finish
        super

        CI.deactivate_test(self)
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
datadog-ci-0.4.1 lib/datadog/ci/test.rb
datadog-ci-0.4.0 lib/datadog/ci/test.rb