Class: Cucumber::Core::Test::Case

Inherits:
Object
  • Object
show all
Defined in:
lib/automation_helpers/extensions/cucumber/core/test/case.rb

Overview

Additional useful methods to extend the Cucumber::Core::Test::Case class with

Instance Method Summary collapse

Instance Method Details

#feature_file_nameString

The file name of the feature being ran (Without the .feature extension)

Returns:



13
14
15
# File 'lib/automation_helpers/extensions/cucumber/core/test/case.rb', line 13

def feature_file_name
  feature_file_path.split('/').last&.split('.')&.first.to_s
end

#feature_file_pathString

The fully qualified location of the feature being ran

Returns:



20
21
22
# File 'lib/automation_helpers/extensions/cucumber/core/test/case.rb', line 20

def feature_file_path
  location.to_s
end