Class: Cucumber::Formatter::Json
- Inherits:
-
GherkinFormatterAdapter
- Object
- GherkinFormatterAdapter
- Cucumber::Formatter::Json
- Includes:
- Io
- Defined in:
- lib/cucumber/formatter/json.rb
Overview
The formatter used for --format json
Direct Known Subclasses
Instance Method Summary collapse
-
#initialize(runtime, io, options) ⇒ Json
constructor
A new instance of Json.
Methods included from Io
#ensure_dir, #ensure_file, #ensure_io
Methods inherited from GherkinFormatterAdapter
#after_feature, #after_features, #after_step, #before_background, #before_examples, #before_feature, #before_feature_element, #before_step, #before_step_result, #embed, #puts, #scenario_name, #step_name
Constructor Details
#initialize(runtime, io, options) ⇒ Json
Returns a new instance of Json.
12 13 14 15 |
# File 'lib/cucumber/formatter/json.rb', line 12 def initialize(runtime, io, ) @io = ensure_io(io, "json") super(Gherkin::Formatter::JSONFormatter.new(@io), false, ) end |