module Cucumber::Pro
Attributes
logger[R]
Public Class Methods
config()
click to toggle source
# File lib/cucumber/pro.rb, line 28 def config @config ||= Config.new end
configure() { |config| ... }
click to toggle source
# File lib/cucumber/pro.rb, line 24 def configure yield config end
new(runtime, output, options)
click to toggle source
# File lib/cucumber/pro.rb, line 9 def new(runtime, output, options) create_logger(output) working_copy = Scm::WorkingCopy.detect if should_publish working_copy.check_clean if config.should_check_clean session = WebSocket::Session.new(url, logger, timeout: config.timeout) else session = WebSocket::NullSession.new end Formatter.new(session, working_copy) end
Private Class Methods
create_logger(output)
click to toggle source
# File lib/cucumber/pro.rb, line 41 def create_logger(output) @logger = config.logger || Logger.new(output) end
should_publish()
click to toggle source
# File lib/cucumber/pro.rb, line 49 def should_publish config.should_publish end
token()
click to toggle source
# File lib/cucumber/pro.rb, line 45 def token config.token end
url()
click to toggle source
# File lib/cucumber/pro.rb, line 37 def url config.url + "?token=#{token}" end