1 class MultiThreadedExampleGroupRunner < Spec::Runner::ExampleGroupRunner
2 def initialize(options, arg)
12 example_groups.each { |b| q << b}
14 @thread_count.times do
15 @threads << Thread.new(q) do |queue|
16 while not queue.empty?
17 example_group = queue.pop
18 success &= example_group.suite.run(nil)
23 @threads.each {|t| t.join}
28 MultiThreadedBehaviourRunner = MultiThreadedExampleGroupRunner