Sha256: 2b7fb56978adc9ce9df0e9557b36e488ed4155f6cc3f22838ff832a20b7c5f2a
Contents?: true
Size: 599 Bytes
Versions: 10
Compression:
Stored size: 599 Bytes
Contents
module AllureCucumber module DSL def attach_file(title, file, attach_to_step=true) @tracker = AllureCucumber::FeatureTracker.tracker options = {:file => file, :title => title} options.merge!(:step => @tracker.step_name) if attach_to_step if @tracker.scenario_name AllureRubyAdaptorApi::Builder.add_attachment(@tracker.feature_name, @tracker.scenario_name, options) else # TODO: This is possible for background steps. puts "Cannot attach #{title} to step #{@tracker.step_name} as scenario name is undefined" end end end end
Version data entries
10 entries across 10 versions & 1 rubygems