Module: Cucumber::Formatter
- Defined in:
- lib/cucumber/formatter/io.rb,
lib/cucumber/formatter/html.rb,
lib/cucumber/formatter/json.rb,
lib/cucumber/formatter/debug.rb,
lib/cucumber/formatter/junit.rb,
lib/cucumber/formatter/rerun.rb,
lib/cucumber/formatter/steps.rb,
lib/cucumber/formatter/usage.rb,
lib/cucumber/formatter/fanout.rb,
lib/cucumber/formatter/pretty.rb,
lib/cucumber/formatter/console.rb,
lib/cucumber/formatter/summary.rb,
lib/cucumber/formatter/duration.rb,
lib/cucumber/formatter/progress.rb,
lib/cucumber/formatter/stepdefs.rb,
lib/cucumber/formatter/ansicolor.rb,
lib/cucumber/formatter/fail_fast.rb,
lib/cucumber/formatter/interceptor.rb,
lib/cucumber/formatter/json_pretty.rb,
lib/cucumber/formatter/legacy_api/ast.rb,
lib/cucumber/formatter/backtrace_filter.rb,
lib/cucumber/formatter/event_bus_report.rb,
lib/cucumber/formatter/duration_extractor.rb,
lib/cucumber/formatter/hook_query_visitor.rb,
lib/cucumber/formatter/legacy_api/adapter.rb,
lib/cucumber/formatter/legacy_api/results.rb,
lib/cucumber/formatter/ignore_missing_messages.rb,
lib/cucumber/formatter/legacy_api/runtime_facade.rb
Defined Under Namespace
Modules: ANSIColor, Console, Duration, Interceptor, Io, LegacyApi, Summary Classes: BacktraceFilter, Debug, DurationExtractor, EventBusReport, FailFast, Fanout, HookQueryVisitor, Html, IgnoreMissingMessages, Json, JsonPretty, Junit, NameBuilder, Pretty, Progress, Rerun, ResultBuilder, Stepdefs, Steps, Usage
Constant Summary collapse
- BACKTRACE_FILTER_PATTERNS =
[/vendor\/rails|lib\/cucumber|bin\/cucumber:|lib\/rspec|gems\/|minitest|test\/unit|.gem\/ruby|lib\/ruby/]
Class Method Summary collapse
Class Method Details
.create_comments_array(comments) ⇒ Object
328 329 330 331 332 |
# File 'lib/cucumber/formatter/json.rb', line 328 def self.create_comments_array(comments) comments_array = [] comments.each { |comment| comments_array << { value: comment.to_s.strip, line: comment.location.line } } comments_array end |