Module: Flatware::RSpec
- Defined in:
- lib/flatware/rspec.rb,
lib/flatware/rspec/summary.rb,
lib/flatware/rspec/formatter.rb,
lib/flatware/rspec/checkpoint.rb,
lib/flatware/rspec/example_notification.rb,
lib/flatware/rspec/examples_notification.rb
Defined Under Namespace
Modules: Formatters
Classes: Checkpoint, Example, ExampleNotification, ExamplesNotification, Formatter, ProgressMessage, Summary
Class Method Summary
collapse
Class Method Details
10
11
12
13
14
15
16
17
18
19
|
# File 'lib/flatware/rspec.rb', line 10
def self.(args, workers:)
options = ::RSpec::Core::ConfigurationOptions.new(args)
configuration = ::RSpec::Core::Configuration.new
def configuration.command() 'rspec' end
options.configure(configuration)
configuration.files_to_run.uniq.map do |file|
Job.new(file, args)
end
end
|
.run(job, options = {}) ⇒ Object
21
22
23
24
25
26
|
# File 'lib/flatware/rspec.rb', line 21
def self.run(job, options={})
runner = ::RSpec::Core::Runner
def runner.trap_interrupt() end
runner.run(%w[--format Flatware::RSpec::Formatter] + Array(job), $stderr, $stdout)
end
|