Class: Cucumber::Formatter::JsonPretty

Inherits:
Json show all
Defined in:
lib/cucumber/formatter/json_pretty.rb

Overview

The formatter used for --format json_pretty

Instance Method Summary collapse

Methods inherited from Json

#after_feature, #initialize

Methods included from Io

#ensure_dir, #ensure_file, #ensure_io

Methods inherited from GherkinFormatterAdapter

#after_feature, #before_background, #before_examples, #before_feature, #before_feature_element, #before_features, #before_step, #before_step_result, #embed, #initialize

Constructor Details

This class inherits a constructor from Cucumber::Formatter::Json

Instance Method Details

#after_features(features) ⇒ Object



7
8
9
# File 'lib/cucumber/formatter/json_pretty.rb', line 7

def after_features(features)
  @io.write(JSON.pretty_generate(@obj))
end