Class: RSpec::Distrib::Leader::TestsProvider

Inherits:
Object
  • Object
show all
Defined in:
lib/rspec/distrib/leader/tests_provider.rb

Overview

Default strategy to get a list of spec files to serve from the queue. Gets spec files from spec directory.

Class Method Summary collapse

Class Method Details

.callArray<String>

An application with a very long test suite might have better results by ordering the specs by average execution time descending.

Examples:

‘spec/user_spec.rb’, ‘spec/users_controller_spec.rb’

Returns:

  • (Array<String>)

    list of spec files to enqueue



13
14
15
# File 'lib/rspec/distrib/leader/tests_provider.rb', line 13

def call
  Dir.glob('spec/**/*_spec.rb')
end