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