lib/datadog/ci/contrib/cucumber/formatter.rb in datadog-ci-0.7.0 vs lib/datadog/ci/contrib/cucumber/formatter.rb in datadog-ci-0.8.0
- old
+ new
@@ -32,17 +32,17 @@
config.on_event :test_step_started, &method(:on_test_step_started)
config.on_event :test_step_finished, &method(:on_test_step_finished)
end
def on_test_run_started(event)
- test_session = CI.start_test_session(
+ CI.start_test_session(
tags: {
CI::Ext::Test::TAG_FRAMEWORK => Ext::FRAMEWORK,
CI::Ext::Test::TAG_FRAMEWORK_VERSION => CI::Contrib::Cucumber::Integration.version.to_s
},
service: configuration[:service_name]
)
- CI.start_test_module(test_session.name) if test_session
+ CI.start_test_module(Ext::FRAMEWORK)
end
def on_test_run_finished(event)
if event.respond_to?(:success)
finish_session(event.success)