Sha256: 84fb766062c0242767d5d1fa78eb69ec6651ddca03c2e949c81f8fc990d16f7d

Contents?: true

Size: 925 Bytes

Versions: 15

Compression:

Stored size: 925 Bytes

Contents

# frozen_string_literal: true

class Ree::SpecRunner::View
  def packages_menu(prepared_command_params)
    prepared_command_params
      .sort_by(&:package_path)
      .map { |x| " - #{x.package_name} (#{x.spec_count} spec files)" }
      .join("\n")
  end

  def package_not_found_message(package_name, prepared_command_params)
    "Package #{package_name} not found! \nPossible packages:\n\n#{packages_menu(prepared_command_params)}"
  end

  def missing_specs_message(skipped_packages)
    "NO SPECS FOUND FOR PACKAGES: \n#{skipped_packages.map { |x| " - #{x}" }.join("\n")}\n\n"
  end

  def skipping_specs_message(skipped_packages)
    "FOLLOWING PACKAGES WERE SKIPPED BY .runignore FILE: \n#{skipped_packages.map { |x| " - #{x}" }.join("\n")}\n\n"
  end

  def specs_header_message
    "**** SPECS *****"
  end

  def no_specs_for_package(package_name)
    "Package #{package_name} has no specs to execute!"
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
ree-1.0.47 lib/ree/spec_runner/view.rb
ree-1.0.46 lib/ree/spec_runner/view.rb
ree-1.0.45 lib/ree/spec_runner/view.rb
ree-1.0.44 lib/ree/spec_runner/view.rb
ree-1.0.43 lib/ree/spec_runner/view.rb
ree-1.0.42 lib/ree/spec_runner/view.rb
ree-1.0.41 lib/ree/spec_runner/view.rb
ree-1.0.40 lib/ree/spec_runner/view.rb
ree-1.0.39 lib/ree/spec_runner/view.rb
ree-1.0.38 lib/ree/spec_runner/view.rb
ree-1.0.37 lib/ree/spec_runner/view.rb
ree-1.0.36 lib/ree/spec_runner/view.rb
ree-1.0.35 lib/ree/spec_runner/view.rb
ree-1.0.34 lib/ree/spec_runner/view.rb
ree-1.0.33 lib/ree/spec_runner/view.rb