class Fivemat::Cucumber

Public Instance Methods

after_feature(feature) click to toggle source
# File lib/fivemat/cucumber.rb, line 17
def after_feature(feature)
  print_elapsed_time @io, @start_time
  @io.puts

  @exceptions.each do |(exception, status)|
    print_exception(exception, status, 2)
  end
end
after_features(features) click to toggle source
# File lib/fivemat/cucumber.rb, line 31
def after_features(features)
  @io.puts
  print_stats(features, @options)
  print_snippets(@options)
  print_passing_wip(@options)
end
before_feature(feature) click to toggle source
# File lib/fivemat/cucumber.rb, line 12
def before_feature(feature)
  @exceptions = []
  @start_time = Time.now
end
done() click to toggle source
# File lib/fivemat/cucumber.rb, line 38
def done
end
exception(exception, status) click to toggle source
Calls superclass method
# File lib/fivemat/cucumber.rb, line 26
def exception(exception, status)
  @exceptions << [exception, status]
  super if defined?(super)
end
feature_name(keyword, name) click to toggle source
# File lib/fivemat/cucumber.rb, line 7
def feature_name(keyword, name)
  @io.print "#{name.sub(/^\s*/, '').split("\n").first} "
  @io.flush
end