Sha256: 9a7364919717948728727fe6787cfaaf4d3e8bd8ba3d9f8c357349b96a1cd60d

Contents?: true

Size: 716 Bytes

Versions: 22

Compression:

Stored size: 716 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,
  '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

22 entries across 22 versions & 1 rubygems

Version Path
knapsack_pro-1.11.0 bin/knapsack_pro
knapsack_pro-1.10.1 bin/knapsack_pro
knapsack_pro-1.10.0 bin/knapsack_pro
knapsack_pro-1.9.0 bin/knapsack_pro
knapsack_pro-1.8.0 bin/knapsack_pro
knapsack_pro-1.7.0 bin/knapsack_pro
knapsack_pro-1.6.0 bin/knapsack_pro
knapsack_pro-1.5.0 bin/knapsack_pro
knapsack_pro-1.4.0 bin/knapsack_pro
knapsack_pro-1.3.0 bin/knapsack_pro
knapsack_pro-1.2.1 bin/knapsack_pro
knapsack_pro-1.2.0 bin/knapsack_pro
knapsack_pro-1.1.0 bin/knapsack_pro
knapsack_pro-1.0.2 bin/knapsack_pro
knapsack_pro-1.0.1 bin/knapsack_pro
knapsack_pro-1.0.0 bin/knapsack_pro
knapsack_pro-0.57.0 bin/knapsack_pro
knapsack_pro-0.56.0 bin/knapsack_pro
knapsack_pro-0.55.2 bin/knapsack_pro
knapsack_pro-0.55.1 bin/knapsack_pro