Sha256: aca7e89931bcdd26e2b9c9f26033cb02a51acf0b9f5c96147e63ea8b133e1ea8

Contents?: true

Size: 783 Bytes

Versions: 104

Compression:

Stored size: 783 Bytes

Contents

#!/usr/bin/env ruby

require_relative '../lib/knapsack_pro'

runner = ARGV[0]
arguments = ARGV[1]

MAP = {
  'rspec' => KnapsackPro::Runners::RSpecRunner,
  'queue:rspec' => KnapsackPro::Runners::Queue::RSpecRunner,
  'cucumber' => KnapsackPro::Runners::CucumberRunner,
  'queue:cucumber' => KnapsackPro::Runners::Queue::CucumberRunner,
  'minitest' => KnapsackPro::Runners::MinitestRunner,
  'queue:minitest' => KnapsackPro::Runners::Queue::MinitestRunner,
  'test_unit' => KnapsackPro::Runners::TestUnitRunner,
  'spinach' => KnapsackPro::Runners::SpinachRunner,
}

runner_class = MAP[runner]

if runner_class
  runner_class.run(arguments)
else
  raise 'Undefined runner. Please provide runner name and optional arguments, for instance: knapsack_pro rspec "--color --profile"'
end

Version data entries

104 entries across 104 versions & 1 rubygems

Version Path
knapsack_pro-6.0.1 bin/knapsack_pro
knapsack_pro-6.0.0 bin/knapsack_pro
knapsack_pro-5.7.0 bin/knapsack_pro
knapsack_pro-5.6.0 bin/knapsack_pro
knapsack_pro-5.5.0 bin/knapsack_pro
knapsack_pro-5.4.1 bin/knapsack_pro
knapsack_pro-5.4.0 bin/knapsack_pro
knapsack_pro-5.3.5 bin/knapsack_pro
knapsack_pro-5.3.4 bin/knapsack_pro
knapsack_pro-5.3.3 bin/knapsack_pro
knapsack_pro-5.3.2 bin/knapsack_pro
knapsack_pro-5.3.1 bin/knapsack_pro
knapsack_pro-5.3.0 bin/knapsack_pro
knapsack_pro-5.2.1 bin/knapsack_pro
knapsack_pro-5.2.0 bin/knapsack_pro
knapsack_pro-5.1.2 bin/knapsack_pro
knapsack_pro-5.1.1 bin/knapsack_pro
knapsack_pro-5.1.0 bin/knapsack_pro
knapsack_pro-5.0.0 bin/knapsack_pro
knapsack_pro-4.1.0 bin/knapsack_pro