Class: Fivemat::Cucumber
- Inherits:
-
Cucumber::Formatter::Progress
- Object
- Cucumber::Formatter::Progress
- Fivemat::Cucumber
- Includes:
- ElapsedTime
- Defined in:
- lib/fivemat/cucumber.rb
Instance Method Summary collapse
- #after_feature(feature) ⇒ Object
- #after_features(features) ⇒ Object
- #before_feature(feature) ⇒ Object
- #done ⇒ Object
- #exception(exception, status) ⇒ Object
- #label(feature) ⇒ Object
Methods included from ElapsedTime
Instance Method Details
#after_feature(feature) ⇒ Object
18 19 20 21 22 23 24 25 |
# File 'lib/fivemat/cucumber.rb', line 18 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) ⇒ Object
32 33 34 35 36 37 |
# File 'lib/fivemat/cucumber.rb', line 32 def after_features(features) @io.puts print_stats(features, @options) print_snippets(@options) print_passing_wip(@options) end |
#before_feature(feature) ⇒ Object
11 12 13 14 15 16 |
# File 'lib/fivemat/cucumber.rb', line 11 def before_feature(feature) @io.print "#{label(feature)} " @io.flush @exceptions = [] @start_time = Time.now end |
#done ⇒ Object
39 40 |
# File 'lib/fivemat/cucumber.rb', line 39 def done end |
#exception(exception, status) ⇒ Object
27 28 29 30 |
# File 'lib/fivemat/cucumber.rb', line 27 def exception(exception, status) @exceptions << [exception, status] super if defined?(super) end |
#label(feature) ⇒ Object
7 8 9 |
# File 'lib/fivemat/cucumber.rb', line 7 def label(feature) feature.short_name end |