Class: AppMap::Cucumber::Provider4

Inherits:
ProviderStruct show all
Defined in:
lib/appmap/cucumber.rb

Overview

Provider4 provides scenario name, feature name, and feature group name for Cucumber versions 4.0 and later.

Instance Attribute Summary

Attributes inherited from ProviderStruct

#scenario

Instance Method Summary collapse

Methods inherited from ProviderStruct

#feature_group

Instance Method Details

#attributesObject



34
35
36
# File 'lib/appmap/cucumber.rb', line 34

def attributes
  ScenarioAttributes.new(scenario.name, scenario.name.split(' ')[0..1].join(' '), feature_group)
end

#feature_pathObject



38
39
40
# File 'lib/appmap/cucumber.rb', line 38

def feature_path
  scenario.location.file
end