Sha256: 851a3b3f1122f86614742ae5905726a84dd2ad411f67904dc27ddde560be33f7

Contents?: true

Size: 466 Bytes

Versions: 15

Compression:

Stored size: 466 Bytes

Contents

require_relative '../../../spec_helper'
require_lib 'reek/examiner'

RSpec.describe 'Runtime speed' do
  let(:source_directory) { SAMPLES_DIR.join('smelly_source') }

  it 'runs on our smelly sources in less than 5 seconds' do
    expect do
      source_directory.each_entry do |entry|
        next if %w(. ..).include?(entry.to_s)

        examiner = Reek::Examiner.new entry.to_path
        examiner.smells.size
      end
    end.to perform_under(5).sec
  end
end

Version data entries

15 entries across 13 versions & 2 rubygems

Version Path
reek-6.0.1 spec/performance/reek/smell_detectors/runtime_speed_spec.rb
reek-6.0.0 spec/performance/reek/smell_detectors/runtime_speed_spec.rb
reek-5.6.0 spec/performance/reek/smell_detectors/runtime_speed_spec.rb
reek-5.5.0 spec/performance/reek/smell_detectors/runtime_speed_spec.rb
reek-5.4.1 spec/performance/reek/smell_detectors/runtime_speed_spec.rb
reek-5.4.0 spec/performance/reek/smell_detectors/runtime_speed_spec.rb
reek-5.3.2 spec/performance/reek/smell_detectors/runtime_speed_spec.rb
reek-5.3.1 spec/performance/reek/smell_detectors/runtime_speed_spec.rb
reek-5.3.0 spec/performance/reek/smell_detectors/runtime_speed_spec.rb
config_gems_initialization_aim-0.1.4 vendor/bundle/ruby/2.5.0/gems/config_gems_initialization_aim-0.1.1/vendor/bundle/ruby/2.5.0/gems/reek-5.2.0/spec/performance/reek/smell_detectors/runtime_speed_spec.rb
config_gems_initialization_aim-0.1.4 vendor/bundle/ruby/2.5.0/gems/reek-5.2.0/spec/performance/reek/smell_detectors/runtime_speed_spec.rb
config_gems_initialization_aim-0.1.3 vendor/bundle/ruby/2.5.0/gems/config_gems_initialization_aim-0.1.1/vendor/bundle/ruby/2.5.0/gems/reek-5.2.0/spec/performance/reek/smell_detectors/runtime_speed_spec.rb
config_gems_initialization_aim-0.1.3 vendor/bundle/ruby/2.5.0/gems/reek-5.2.0/spec/performance/reek/smell_detectors/runtime_speed_spec.rb
reek-5.2.0 spec/performance/reek/smell_detectors/runtime_speed_spec.rb
reek-5.1.0 spec/performance/reek/smell_detectors/runtime_speed_spec.rb