Module: Cucumber::Formatter
- Defined in:
- lib/cucumber/formatter/io.rb,
lib/cucumber/formatter/html.rb,
lib/cucumber/formatter/json.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/http_io.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/html_builder.rb,
lib/cucumber/formatter/console_counts.rb,
lib/cucumber/formatter/console_issues.rb,
lib/cucumber/formatter/legacy_api/ast.rb,
lib/cucumber/formatter/backtrace_filter.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 Classes: BacktraceFilter, ConsoleCounts, ConsoleIssues, CurlOptionParser, DurationExtractor, FailFast, Fanout, HTTPIO, HookQueryVisitor, Html, HtmlBuilder, IOHTTPBuffer, IgnoreMissingMessages, Json, JsonPretty, Junit, NameBuilder, Pretty, Progress, Rerun, ResultBuilder, Stepdefs, Steps, Summary, Usage
Constant Summary collapse
- BACKTRACE_FILTER_PATTERNS =
Regexp.new(@backtrace_filters.join('|'))
Class Method Summary collapse
Class Method Details
.create_comments_array(comments) ⇒ Object
338 339 340 341 342 |
# File 'lib/cucumber/formatter/json.rb', line 338 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 |