class BotSpec::BotSpecRunner
Public Class Methods
run(args, err=$stderr, out=$stdout)
click to toggle source
# File lib/rspec/botspec_runner.rb, line 12 def self.run(args, err=$stderr, out=$stdout) trap_interrupt options = RSpec::Core::ConfigurationOptions.new({}) if options.options[:runner] options.options[:runner].call(options, err, out) else new(options).run(args, err, out) end end
Public Instance Methods
configure_rspec()
click to toggle source
# File lib/rspec/botspec_runner.rb, line 7 def configure_rspec config = ::RSpec.configuration end
run(args, out, err)
click to toggle source
# File lib/rspec/botspec_runner.rb, line 24 def run(args, out, err) setup(err, out) botname = args[:botname] return @configuration.reporter.exit_early(@configuration.failure_exit_code) if RSpec.world.wants_to_quit dialogs_path = args[:dialogs_path] run_specs(LoadDialogs.run_dialogs(botname, dialogs_path).map{|dialog| dialog.create_example}).tap do persist_example_statuses end end