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-7.13.1 bin/knapsack_pro
knapsack_pro-7.13.0 bin/knapsack_pro
knapsack_pro-7.12.1 bin/knapsack_pro
knapsack_pro-7.12.0 bin/knapsack_pro
knapsack_pro-7.11.0 bin/knapsack_pro
knapsack_pro-7.10.0 bin/knapsack_pro
knapsack_pro-7.9.0 bin/knapsack_pro
knapsack_pro-7.8.2 bin/knapsack_pro
knapsack_pro-7.8.1 bin/knapsack_pro
knapsack_pro-7.8.0 bin/knapsack_pro
knapsack_pro-7.7.0 bin/knapsack_pro
knapsack_pro-7.6.2 bin/knapsack_pro
knapsack_pro-7.6.1 bin/knapsack_pro
knapsack_pro-7.6.0 bin/knapsack_pro
knapsack_pro-7.1.0 bin/knapsack_pro
knapsack_pro-7.0.1 bin/knapsack_pro
knapsack_pro-7.0.0 bin/knapsack_pro
knapsack_pro-6.0.4 bin/knapsack_pro
knapsack_pro-6.0.3 bin/knapsack_pro
knapsack_pro-6.0.2 bin/knapsack_pro