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-2.18.2 bin/knapsack_pro
knapsack_pro-2.18.1 bin/knapsack_pro
knapsack_pro-2.18.0 bin/knapsack_pro
knapsack_pro-2.17.0 bin/knapsack_pro
knapsack_pro-2.16.0 bin/knapsack_pro
knapsack_pro-2.15.0 bin/knapsack_pro
knapsack_pro-2.14.0 bin/knapsack_pro
knapsack_pro-2.13.0 bin/knapsack_pro
knapsack_pro-2.12.0 bin/knapsack_pro
knapsack_pro-2.11.0 bin/knapsack_pro
knapsack_pro-2.10.1 bin/knapsack_pro
knapsack_pro-2.10.0 bin/knapsack_pro
knapsack_pro-2.9.0 bin/knapsack_pro
knapsack_pro-2.8.0 bin/knapsack_pro
knapsack_pro-2.7.0 bin/knapsack_pro
knapsack_pro-2.6.0 bin/knapsack_pro
knapsack_pro-2.5.0 bin/knapsack_pro
knapsack_pro-2.4.0 bin/knapsack_pro
knapsack_pro-2.3.0 bin/knapsack_pro
knapsack_pro-2.2.1 bin/knapsack_pro