Module: RSpec::Conductor
- Defined in:
- lib/rspec/conductor.rb,
lib/rspec/conductor/cli.rb,
lib/rspec/conductor/server.rb,
lib/rspec/conductor/worker.rb,
lib/rspec/conductor/railtie.rb,
lib/rspec/conductor/version.rb,
lib/rspec/conductor/protocol.rb,
lib/rspec/conductor/suite_run.rb,
lib/rspec/conductor/util/ansi.rb,
lib/rspec/conductor/formatters/ci.rb,
lib/rspec/conductor/util/terminal.rb,
lib/rspec/conductor/worker_process.rb,
lib/rspec/conductor/formatters/base.rb,
lib/rspec/conductor/formatters/fancy.rb,
lib/rspec/conductor/formatters/plain.rb,
lib/rspec/conductor/rspec_subscriber.rb,
lib/rspec/conductor/util/child_process.rb,
lib/rspec/conductor/util/screen_buffer.rb
Defined Under Namespace
Modules: Formatters, Protocol, Util
Classes: CLI, RSpecSubscriber, Railtie, Server, SuiteRun, Worker, WorkerProcess
Constant Summary
collapse
- VERSION =
"1.0.11"
Class Method Summary
collapse
Class Method Details
.default_first_is_1? ⇒ Boolean
24
25
26
|
# File 'lib/rspec/conductor.rb', line 24
def self.default_first_is_1?
ENV["RSPEC_CONDUCTOR_FIRST_IS_1"] == "1"
end
|
.default_worker_count ⇒ Object
16
17
18
19
20
21
22
|
# File 'lib/rspec/conductor.rb', line 16
def self.default_worker_count
@default_worker_count ||= if ENV['RSPEC_CONDUCTOR_DEFAULT_WORKER_COUNT'].to_i > 0
ENV['RSPEC_CONDUCTOR_DEFAULT_WORKER_COUNT'].to_i
else
Etc.nprocessors
end
end
|
.root ⇒ Object
8
9
10
|
# File 'lib/rspec/conductor.rb', line 8
def self.root
@root ||= Dir.pwd
end
|
.root=(root) ⇒ Object
12
13
14
|
# File 'lib/rspec/conductor.rb', line 12
def self.root=(root)
@root = root
end
|