Class: Lucid::Formatter::Condensed

Inherits:
Standard show all
Defined in:
lib/lucid/formatter/condensed.rb

Constant Summary

Constants included from ANSIColor

ANSIColor::ALIASES

Constants included from Term::ANSIColor

Term::ANSIColor::ATTRIBUTES, Term::ANSIColor::ATTRIBUTE_NAMES, Term::ANSIColor::COLORED_REGEXP

Instance Attribute Summary

Attributes inherited from Standard

#indent, #runtime

Instance Method Summary collapse

Methods inherited from Standard

#after_background, #after_feature_element, #after_features, #after_multiline_arg, #after_outline_table, #after_table_cell, #after_table_row, #after_tags, #before_background, #before_examples_array, #before_feature, #before_feature_element, #before_features, #before_multiline_arg, #before_outline_table, #before_table_row, #doc_string, #examples_name, #exception, #initialize, #table_cell_value, #tag_name

Methods included from Io

#ensure_dir, #ensure_file, #ensure_io

Methods included from Console

#embed, #empty_messages, #format_step, #format_string, #linebreaks, #print_elements, #print_exception, #print_failing_strict, #print_matchers, #print_message, #print_messages, #print_passing_wip, #print_profile_information, #print_stats, #print_steps, #print_table_row_messages, #puts

Methods included from ANSIColor

define_grey, define_real_grey, #green_lucid, #grey, #lucid, #red_lucid, #yellow_lucid

Methods included from Term::ANSIColor

attributes, coloring=, coloring?, included, #uncolored

Methods included from Summary

#scenario_summary, #step_summary

Methods included from Duration

#format_duration

Constructor Details

This class inherits a constructor from Lucid::Formatter::Standard

Instance Method Details

#after_step(step) ⇒ Object



26
27
28
29
# File 'lib/lucid/formatter/condensed.rb', line 26

def after_step( step )
  @io.print " "*(step.name.length+4)
  @io.flush
end

#background_name(*args) ⇒ Object



17
18
19
# File 'lib/lucid/formatter/condensed.rb', line 17

def background_name(*args)
  return
end

#before_step(step) ⇒ Object



21
22
23
24
# File 'lib/lucid/formatter/condensed.rb', line 21

def before_step( step )
  @io.print "\r... #{step.name}"
  @io.flush
end

#before_step_result(*args) ⇒ Object



31
32
33
34
# File 'lib/lucid/formatter/condensed.rb', line 31

def before_step_result( *args )
  @io.printf "\r"
  super
end

#comment_line(comment_line) ⇒ Object



41
42
43
# File 'lib/lucid/formatter/condensed.rb', line 41

def comment_line(comment_line)
  return
end

#feature_name(keyword, name) ⇒ Object



11
12
13
14
15
# File 'lib/lucid/formatter/condensed.rb', line 11

def feature_name(keyword, name)
  name = name.split(/\n/)[0]
  @io.puts("#{keyword}: #{name}")
  @io.flush
end

#scenario_name(keyword, name, file_colon_line, source_indent) ⇒ Object



7
8
9
# File 'lib/lucid/formatter/condensed.rb', line 7

def scenario_name(keyword, name, file_colon_line, source_indent)
  super
end

#step_name(*args) ⇒ Object



36
37
38
39
# File 'lib/lucid/formatter/condensed.rb', line 36

def step_name(*args)
  @hide_this_step=true if args[2] == :passed
  super
end