Class: ParallelSpecs::CLI
- Inherits:
-
Object
- Object
- ParallelSpecs::CLI
- Defined in:
- lib/parallel_specs/cli.rb,
lib/parallel_specs/cli/dashboard.rb
Defined Under Namespace
Classes: Dashboard
Instance Method Summary collapse
-
#initialize ⇒ CLI
constructor
A new instance of CLI.
- #run(argv) ⇒ Object
Constructor Details
#initialize ⇒ CLI
Returns a new instance of CLI.
15 16 17 |
# File 'lib/parallel_specs/cli.rb', line 15 def initialize @runner = ParallelSpecs::RSpec::Runner end |
Instance Method Details
#run(argv) ⇒ Object
19 20 21 22 23 24 25 26 27 28 29 |
# File 'lib/parallel_specs/cli.rb', line 19 def run(argv) Signal.trap('INT') { handle_interrupt } = (argv) ENV['DISABLE_SPRING'] ||= '1' num_processes = ParallelSpecs.determine_number_of_processes([:count]) abort 'Process count must be greater than 0' unless num_processes.positive? run_tests_in_parallel(num_processes, ) end |