Module: Datadog::CI::TestVisibility::Serializers::Factories::TestSuiteLevel
- Defined in:
- lib/datadog/ci/test_visibility/serializers/factories/test_suite_level.rb
Overview
This factory takes care of creating msgpack serializers when test-suite-level visibility is enabled
Class Method Summary collapse
Class Method Details
.serializer(trace, span, options: {}) ⇒ Object
18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
# File 'lib/datadog/ci/test_visibility/serializers/factories/test_suite_level.rb', line 18 def serializer(trace, span, options: {}) case span.type when Datadog::CI::Ext::AppTypes::TYPE_TEST Serializers::TestV2.new(trace, span, options: ) when Datadog::CI::Ext::AppTypes::TYPE_TEST_SESSION Serializers::TestSession.new(trace, span, options: ) when Datadog::CI::Ext::AppTypes::TYPE_TEST_MODULE Serializers::TestModule.new(trace, span, options: ) when Datadog::CI::Ext::AppTypes::TYPE_TEST_SUITE Serializers::TestSuite.new(trace, span, options: ) else Serializers::Span.new(trace, span, options: ) end end |